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

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

1. LayaAir编译器错之for_in [ 100%]

LayaAir编译器错之for_in 编译器会新一个变$each_i来代替i 此情况下尽量写成以下方式 ------------------as------------------     for (var i:String in Loader.loadedMap)             {                 var t:Texture = null;                 if(Lo...

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

2. 引擎 TiledMap 居然不支持图块翻转 [ 91%]

...      }                 var tAniSprite;                 for (var i = 0; i < this.aniSpriteArray.length; i++) {                     tAniSprite = this.aniSpriteArray[i];                     tAniSprite.show();                 }             }    ...

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

3. 多个button如何区分 [ 88%]

多个button如何区分 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button  可以设置tag吗 或者通过监听事件透传?   附件 : --> 2017-04-25 添加评论 免费帖 --> ...

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

4. 红米K20pro 多个手指同时按下就会报这个错 object has in SimpleSingletonList [ 88%]

...个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 2 1 分享 微博 QZONE 微信 腊笔小新 赞同来自: 186*****645 clear() {      var elements = th...

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

5. js继承模式 [ 88%]

...(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProperty(p)) && (d[p] = b[p]); } function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var BackGround = (function(...

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

6. 资源回收的清理不干净的bug [ 87%]

...all.lh", Laya.Handler.create(this, function(sp){             for(var i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());                 ball.name = i.toString();             }             console.l...

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

7. 使用js压缩工具报错 [ 87%]

...e] || {self:name}; if(_super) { var supers=_super.split(','); a.extend=[]; for(var i=0;i<supers.length;i++){ var nm=supers[i]; ins[nm]=ins[nm] || {self:nm}; a.extend.push(ins[nm]); } } var o=window,words=name.split('.'); for(var i=0;i<words.length-1;i++) o=o[words[i]]; o[words[words.length-1]]...

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

8. 分享个资源加载的方法,类似白鹭的加载方式 [ 85%]

...(RES.ONLOADGROUPERROR,"资源组名称不能为空"); return; } var group; for(var i in RES.groups){ var name = RES.groups[i].name; if(name == groupName){ group = RES.groups[i]; break; } } if(!group){ console.error("加载了不存在的资源组"); RES.getInstance().event(RES.ONLOADGROUPERROR,"加...

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

9. 骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉 [ 85%]

...   var tTexture;         var $each_tTexture;         /*for each*/for($each_tTexture in this.subTextureDic){             tTexture=this.subTextureDic[$each_tTexture];             if(tTexture)                 tTexture.destroy();        ...

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

10. 关于HttpRequest [ 85%]

...((encode == null || encode) ? encodeURIComponent(param) : param); } else { for (var i in param) { var k = key == null ? i : key + (param instanceof Array ? '[' + i + ']' : '.' + i); paramStr += CommonUtils.urlEncode(param[i], k, encode); } } // var paramStr = ""; // for (var prop in param) { // para...

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