大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
...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
...怎么做?如果没有的话又该如何做呢? 3、destroy销毁 和 removeSelf删除 有什么区别?什么时候该用哪一个? 4、在飞机大战实例教程中,有Laya.Pool对象,但是在API文档中却只能找到laya.utils.Pool,那么Laya.Pool又是从哪里来的?难道是...
来源: Laya_社区 发布时间: 20161031
...rivate function onClear():void { _s.graphics.clear(); _s.destroy(true); _s.removeSelf(); _s=null; console.log(Laya.loader.getRes(_url)); Loader.clearRes(_url,true); console.log(Laya.loader.getRes(_url)); } 2017-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170222
... onTestLabel这个例子的写法是不对的,Label创建后,只是removeSelf,并没有destroy,因此Label是越来越多,它引用的相关GPU资源得不到释放,所以这是一个不正确的示例。 onTestLabelPool演示了单字模式下不停变换文字大小、描边粗...
来源: Laya_社区 发布时间: 20251106