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

大约有 156 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)

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. 如何调用父类get、set方法? [ 98%]

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

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

3. 播放音效时报错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

4. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 96%]

...veControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset);  let partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); }  onAssetsLoaded(settings) {     ...

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

5. 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

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

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

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

7. Laya.Pool用法 [ 95%]

... 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

8. LayaAir引擎1.7 之后as转换js,出现问题 [ 94%]

...get visible():Boolean  { return super.visible; } override public function set visible(value:Boolean):void  { super.visible = value; if (value) _mcAni.removeFromParent(); }   1.7之后的转换 __getset(0,__proto,'visible',function(){ return Laya.superGet(SwatAniUI,this,'visible'); },function(valu...

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

9. LayaUISample.max.js:321 Uncaught TypeError: Cannot set property 'text' of null [ 94%]

LayaUISample.max.js:321 Uncaught TypeError: Cannot set property 'text' of null var txt:Label = cell.getChildByName("listNumber") as Label;  txt.text = data.listNumber;   调试时会报:LayaUISample.max.js:321 Uncaught TypeError: Cannot set property 'text' of null 引擎版本 LayaAirAS3_1.7....

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

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

...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