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

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

11. 【LIST无法拖动】参照官方实例做的 [ 79%]

...(ui as GameUI1).nickname_ = this.nickname_;         this.list.removeSelf();         this.list.destroy();         this.removeSelf();         this.destroy();         Laya.stage.addChild(ui);      }     jumpScene()     {            let...

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

12. 注册函数里面 事件侦听函数的执行域 的详解 [ 79%]

...gin.on(Laya.Event.CLICK, null, ()=>{ if (this.loginDig) { this.loginDig.removeSelf(); this.loginDig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个函数,是不是就是使用lamb表达式...

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

13. 关于removeChildren、 destroydestroyChildren的疑惑 [ 79%]

...stage.numChildren; i++) { var object = Laya.stage.getChildAt(i); // object.removeSelf(); Laya.stage.removeChildAt(i); object.destroy(true); }该对象继续在屏幕上显示。。。(IDE版本1.7.10.bate) 使用Laya.stage.destroyChildren();是可以移除该对象的 2017-10-12 添加评论 免...

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

14. 创建laya的视图销毁destroy()清除不了 [ 78%]

...s.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,内存还是创建后的大小 2017-02-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内...

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

15. 如何彻底关闭开放域排行榜 [ 78%]

...act && Laya.stage.contains(LayaSample.refract)) LayaSample.refract.removeSelf();//折射层移除舞台 if (Laya.stage.contains(LayaSample.spriteLeaderboard)) {//从舞台移除 LayaSample.textureLeaderboard.bitmap.alwaysChange = false;//将消耗性能的这句话关闭 LayaSample.spriteLea...

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

16. 微信小游戏,开放域(排行榜)关闭后再开始游戏直接开始游戏相比较,掉帧严重! [ 76%]

...act && Laya.stage.contains(LayaSample.refract)) LayaSample.refract.removeSelf();//折射层移除舞台 if (Laya.stage.contains(LayaSample.spriteLeaderboard)) {//从舞台移除 LayaSample.textureLeaderboard.bitmap.alwaysChange = false;//将消耗性能的这句话关闭 LayaSample.spriteLea...

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

17. video怎么删除掉 [ 75%]

...deo怎么删除掉 像官方这样创建了一个video标签,但是我在removeself时,舞台删除了,video还在诶,点不了后面的东西。 2018-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内容相关的链接 提交 1 个回复 L...

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

18. 物理引擎bug [ 71%]

...boneCtn.numChildren;i++){ let b=this.boneCtn.getChildAt(i); b.destroy(); b.removeSelf(); }这样写也不行 2019-09-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个问题没有上传demo 无法调试和验证,  请上传复现demo以供查看解决这个问题 2019-09-07 0 0 分...

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

19. Skeleton动画在自然停止时不会移除play时添加的frameloop [ 70%]

...到结束时不会移除。 这样造成了添加了该Skeleton的场景在removeSelf脱离stage后,依然会因为有被一个不能被释放的Skeleton当作parent来引用而不能作实例释放,而导致内存泄漏 2016-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

20. 同步龙骨插槽动画方案 [ 70%]

...vent.COMPLETE, this, this.parseComplete);         this.mArmature.removeSelf();//从显示列表移除龙骨动画本身         this.mArmature.removeChildren();//从显示列表移除龙骨动画子对象         if (!this.mArmature.destroyed) {             th...

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