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

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

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

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

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

12. 如何彻底关闭开放域排行榜 [ 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

13. laya.display.Node [ 74%]

...t = 0x7fffffff):Node 删除指定索引区间的所有子对象。 Node  removeSelf():Node 从父容器删除自己,如已经被删除不会抛出异常。 Node  replaceChild(newNode:Node, oldNode:Node):Node 替换子节点。 Node  setChildIndex(node:Node, index:int):Node 设置子节点的...

来源: laya_api 发布时间: 20170929

14. 物理引擎bug [ 72%]

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

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

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

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

16. laya.display.Node_API3.0 [ 70%]

...e onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce Constructors constructor new Node(): Node Defined in laya/display/Node.ts:94 Returns Node Properties Optional _extra _extra: INodeExtra Defined in laya/di...

来源: Laya3.0_api 发布时间: 20231115

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

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

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

18. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 69%]

...          tarItem = null;             this.camera.removeSelf();             this.camera.destroy(true);             this.camera = null;              this.scene.destroy();             Laya.Scene.gc();         })); 以...

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

19. 如何完全删除精灵 并回收内存 [ 69%]

...l.recover('Container', container) Laya.stage.addChild(container) container.removeSelf() } laya.utils.Pool.clearBySign('Text') laya.utils.Pool.clearBySign('Container') container = null }, 100)可以结贴了 2018-08-01 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: destroy(true) 2018-07-28 0...

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

20. laya.d3.core.Sprite3D_API3.0 [ 68%]

...e onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new Sprite3D(name?: string, isStatic?: boolean): Sprite3D Overrides Node.constructor Defined in laya/d3/core/Spr...

来源: Laya3.0_api 发布时间: 20231115