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

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

21. 请问怎么制作一个layabox js版本的加载效果 [ 75%]

...alue() { if (progressBar.value >= 1){ progressBar.value = 0; Laya.stage.removeSelf(); //将登录页面从内存销毁 // Laya.stage.destroy(); Laya.stage.addChild(new gamelistUI()); } progressBar.value += 0.05; // this.removeSelf(); // } // function onChange(value) // { // if(value>=100){ // ...

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

22. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 73%]

...添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建...

来源: Laya3.0_文档 发布时间: 20230303

23. 分享:销毁龙骨动画! [ 72%]

...e.stop();//停止龙骨动画播放 removeEvent();//移除事件 mArmature.removeSelf();//从显示列表移除龙骨动画本身 mArmature.removeChildren();//从显示列表移除龙骨动画子对象 mArmature.destroy(true);//从显存销毁龙骨动画及其子对象 mFactory.destroy();//释放...

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

24. 场景切换造成的FPS下降的优化思路请教 [ 72%]

...信 cuixueying 赞同来自: 移除一个界面,需要同时移除自身removeSelf,事件removeEvent,子对象removeChildren,其中removeEvent是个函数,包括当前类所有事件监听的移除,大致如下 /**销毁**/ private function dispose():void { this.removeEvent(); this.remov...

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

25. destroy节点后,报错 [ 71%]

...); for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.removeSelf(); if(obj.name=='Guan'){ this.guans.push(obj); }else if(obj.name=='Fangkuang'){ this.fangkuangs.push(obj); }else if(obj.name=='Cylinder'){ this.cylinders.push(obj); }else{ console.log('recycle loser'); } } } 开心...

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

26. Animation创建和销毁的问题 [ 69%]

...board.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; testAnim2.clear(); testAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("res/fish_1/stand.atlas", true); Loader.clearRes("res/fish_1/attack.atlas", true); trace("移除动画完成"); } } ...

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

27. ani动画问题,cannot read property '_tf' of null [ 68%]

...ani1.on(Laya.Event.COMPLETE, this, () => {                 this.removeSelf();             });         } 这样播放动画有时候会报错,如附件图,但有时候又不报错 附件 : --> 2017-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

28. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 68%]

..."点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.layaMonkey_clone1.addComponent(MouseScript); this.layaMonkey_clone2.addComponent(MouseScrip...

来源: Laya2.0_文档 发布时间: 20210715

29. 鼠标脚本(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 68%]

..."点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.layaMonkey_clone1.addComponent(MouseScript); this.layaMonkey_clone2.addComponent(MouseScrip...

来源: Laya2.0_文档 发布时间: 20210715

30. drawToTexture截大图有问题,会丢失 [ 68%]

...his.nsp.drawToTexture(1600,1600,0,0) as Laya.Texture;         this.nsp.removeSelf();         copySpr.scale(.1,.1);         Laya.stage.addChild(copySpr);     } 附件 : --> 2022-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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