大约有 31 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0028 秒)
Node.prototype.removeChildren移除计数有问题 直接看源码,此问题不管高低版本都存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex &g...
来源: Laya_社区 发布时间: 20201103
panel.removeChildren的问题 我的panel有8个子节点,但是我只移除了4个子节点,使用panel.removeChildren(0,3),结果我的panel全部子节点都被移除了 2018-04-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180402
destroyChildren 销毁对象后为什么依旧能取得内部属性 removeChildren destroyChildren的区别 _bottomBtn = new BottomBtn();//这个对象内部有一个属性为testNum; this.addChild(_bottomBtn); trace("测试1 = " + _bottomBtn.testNum + "-" ...
来源: Laya_社区 发布时间: 20170328
关于removeChildren、 destroy和destroyChildren的疑惑 请教一下: 1、removeChildren的对象是否只有在 移除自身的事情监听,移除自身的timer监听、移除所有引用的情况下才可能被清除? 2、我把下面的对象添加到stage中 var SightBead = (functio...
来源: Laya_社区 发布时间: 20171012
...(true)的话 无法触发。 查看源码发现 true的话 会直接调用 removeChildren()方法 而closeHandler是在_doClose中调用, 请问我是否可以修改源码,完成我想要的效果,即在open方法中添加调用closeHandler再removeChildren,或者说还有其他的什么可...
来源: Laya_社区 发布时间: 20170807
...界面,需要同时移除自身removeSelf,事件removeEvent,子对象removeChildren,其中removeEvent是个函数,包括当前类所有事件监听的移除,大致如下 /**销毁**/ private function dispose():void { this.removeEvent(); this.removeChildren(); this.removeSelf(); }visible...
来源: Laya_社区 发布时间: 20170307
...veSelf();//从显示列表移除龙骨动画本身 this.mArmatureUnUsed[i].removeChildren();//从显示列表移除龙骨动画子对象 this.mArmatureUnUsed[i].destroy(true);//从显存销毁龙骨动画及其子对象 } } console.warn(this.mArmatureUsed.length); for(let i=0;i < this.mArmatureUs...
来源: Laya_社区 发布时间: 20190821
...var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 ...
来源: Laya_社区 发布时间: 20170324
...mArmature.removeSelf();//从显示列表移除龙骨动画本身 mArmature.removeChildren();//从显示列表移除龙骨动画子对象 mArmature.destroy(true);//从显存销毁龙骨动画及其子对象 mFactory.destroy();//释放动画模板类下的纹理数据 mFactory.releaseResource(true);//...
来源: Laya_社区 发布时间: 20170406
...与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: Timor removeChildren(); destroy(true); 2017-11-30 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Timor 相关问题 有什么容器能够实...
来源: Laya_社区 发布时间: 20171130