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

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

231. ReferenceError: Loading_fly is not defined [ 47%]

...ht; var loading_array = []; for(var i = 1; i < 28; i++ ){ loading_array.push('loading/'+ i +'@2x.png',) } Laya.Animation.createFrames(loading_array, 'loading') this.fly = new Laya.Animation(); this.fly.play(0, true, 'loading') this.bounds = this.fly.getGraphicBounds(); this.fly.pivot(this.bounds....

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

232. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 47%]

...Arr[i].baseId.toString()); //装备类型分类再显示 if(itemlo) { data.push({itemImg:""+itemlo.image, m_label:""+allEquipArr[i].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-...

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

233. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 47%]

...要在_showGridList里添加,具体代码如下 testLayer._showGridList.push(this.tMapPlayer); 如果使用ts的话还会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在下面加上 _showGridList: Array<any>;即可 wu语 •...

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

234. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 47%]

...            (comp._isScript())&& (activeChangeScripts.push(comp));             }         }         this._onActive();         for (i=0,n=this._children.length;i < n;i++){             var child=this._children[i];          ...

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

235. 大神们能不能帮忙解决一下一些问题呀,一个新手搞不定呀 [ 46%]

...var i =0;i<剩下关数;i++){ if(i != 随机数){ 新的未过的关数.push(未过的关数[i]); } } 未过的关数 = 新的未过的关数; document.location.href="第" + 随机数 + "关.html?数据=需要传的数据"; } 2018-06-19 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

236. 判断场景里是否存在模型? [ 46%]

...后就只有一模型出现了! for(var i=0;i<2;i++){ this.createmesh.push(i); this.createmesh[i]=new CreateMesh(); this.createmesh[i].init(); } 就是说我的LH这2个模型,里面没有子 模型,都只有一个模型。只是场景里同时加载2 次同样的模型时, 就会只出...

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

237. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 46%]

...h.addComponent(SkinAnimations);                 this.meshes.push(mesh);             }             this.switchAnimation('idle');         }         private switchAnimation(name:string) {             console.log('switchAnimation: ' + this.me...

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

238. 画出来鼠标轨迹线 [ 46%]

...标移动时触发的mousemove事件 function mousemove(){     point.push({         x:Laya.stage.mouseX,         y:Laya.stage.mouseY,         time:Date.now(),     });//给point集合添加一个object,带有当前的鼠标位置和当前的时间 }; //鼠标移动...

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

239. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 46%]

...和动画图集打包前的资源命名对应起来         urls.push(aniName + i + ".png");     }     return urls; }   附件 : --> MyError1.zip 2017-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

240. 使用方向键 控制精灵在格子中移动 [ 46%]

...} } } onkeydown(e){ if(this.keyList.indexOf(e.keyCode)<0){ this.keyList.push(e.keyCode); } } loop(){ if(this.sp.x!=this.next_x||this.sp.y!=this.next_y){ if(this.sp.x!=this.next_x){ if(this.next_x>this.sp.x){ this.sp.x +=5; }else{ this.sp.x -=5; } }else{ if(this.next_y>this.sp.y){ this.sp.y ...

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