• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 225 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

1. ProtoBuf 其他消息类型怎么使用 [ 100%]

..._NetMessageHead=new this.HeadModel();             _NetMessageHead.set('bMainID', head[0]);             _NetMessageHead.set('bAssistantID', head[1]);             _NetMessageHead.set('bHandleCode', head[2]);             _NetMessageHead.set('bReserve', head[3]);   ...

来源: Laya_社区 发布时间: 20161223

2. Laya.Pool用法 [ 99%]

... ProtoPool._dic = new Laya.Dictionary();             ProtoPool._dic.set(ProtoPool.PROTO_HEAD, new com.bigao.h5.proto.Head());             ProtoPool._dic.set(ProtoPool.PROTO_BINARY_REQUEST, new com.bigao.h5.proto.BinaryRequest());             ProtoPool._dic.set(ProtoPool.PROTO_PARAM...

来源: Laya_社区 发布时间: 20170807

3. must set document class! [ 98%]

must set document class! 编译时出来的一个弹框。没有更多提示。 2018-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 需要设置启动类 2018-07-06 0 0 分享 微...

来源: Laya_社区 发布时间: 20180706

4. Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 98%]

Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 现象是 当使用  Cannon物理引擎时,设置了 ColliderShape的localOffset属性后,即使 isKinematic=true ,模型会匀速移动。  已经附上 专门制作的能工重现的项目...

来源: Laya_社区 发布时间: 20210904

5. 播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 [ 98%]

播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 __proto._tryClearBuffer=function(sourceNode){ // if (!Browser.onMac){ // try{ // sourceNode.buffer=null; // }catch (e){ // WebAudioSoundChannel._tryCleanFailed=true; // } // return; // } try {sourceNode.buf...

来源: Laya_社区 发布时间: 20180914

6. 自己写了个label继承官方的label,出现了问题,求指导~ [ 97%]

...nction get textFormat():TextFormat { return _textFormat; } public function set textFormat(value:TextFormat):void { _textFormat = value; font = _textFormat._font; fontSize = _textFormat._fontSize; color = _textFormat._color; bold = _textFormat._bold; italic = _textFormat._italic; underline = _textFor...

来源: Laya_社区 发布时间: 20170516

7. HTMLDIVElement设置innerHTML时报错 [ 96%]

...ml.size(html.contextWidth, html.contextHeight); Laya.stage.addChild(html); setTimeout(function() { html.innerHTML = ''; }, 300);此问题是由于在新版中改变了laya.html.js的HTMLDivElement中width的set方法 之前的版本中,set方法为/** *获取对象的宽 */ __getset(0,__proto,'wid...

来源: Laya_社区 发布时间: 20170620

8. 如何调用父类get、set方法? [ 96%]

如何调用父类get、set方法? 如何在子类中调用父类get、set方法? 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 ymsdandan 赞同来自: 你试下LoginView.__super.call(this)   ,...

来源: Laya_社区 发布时间: 20171108

9. 关于TS get/set重写问题 [ 96%]

关于TS get/set重写问题 我想对父类的 get/set方法进行重写,其作用是为了调用该方法前先做些处理 我父类A有个 public set a($value:number):void{ this._a = $value; } 然后继承父类后子类B重写 public set a($value:number):void {     this.aa();    super.a =...

来源: Laya_社区 发布时间: 20180305

10. 请问特效播放的速率可以自定义吗? [ 95%]

...关的链接 提交 1 个回复 w1114367261 赞同来自: var ss:ParticleSetting = new ParticleSetting(); //更改发射器发射速率 ss.emissionRate = 10; var par:Particle2D = new Particle2D(ss); //更改粒子时间前进 par.advanceTime(2); 2018-04-09 0 3 分享 微博 QZONE 微信 为什么被...

来源: Laya_社区 发布时间: 20180409