大约有 338 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
Laya_社区(102) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(7) Laya2.0_文档(6) Laya_示例(2) Laya2.0_示例(1)
...放回Pool里,并清除对象 Laya.Pool.recover("mybg",BackGround); bg1.removeSelf(); Laya.stage.removeChild(bg1); console.log("bg1->",bg1); //再次从Pool里获取对象的时候,就报错了 var bg2:BackGround= Laya.Pool.getItemByClass("mybg",BackGround); Laya.stage.addChild(bg2); console....
来源: Laya_社区 发布时间: 20180823
...个回复 Laya_Aaron 赞同来自: 父节点addchild 子节点 这样子,removeself 就解除了 2019-03-12 0 3 分享 微博 QZONE 微信 内涵tv何吓吓 赞同来自: 没记得官方有这个方法,你只能用变量getChild存子节点,然后再addchild到同级上... 2019-03-13 0 3 分...
来源: Laya_社区 发布时间: 20190312
...ug 6.尽管删除this.scene的节点还有脚本都是有问题 this.scene.removeSelf(); this.scene.removeAllScript(); 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Apple 赞同来自: 2d和3d是...
来源: Laya_社区 发布时间: 20180411
...来进行示例的修改,您可以在ParticleTool.ts里面对粒子特效removeSelf后进行destory处理来规避这个问题。 2024-08-29 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 银河天路 相关...
来源: Laya_社区 发布时间: 20240826
...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
...(); testView.destroy(); testView.removeSelf(); //destroy的时候movieclip把小图都清掉了,但是movieclip不知道你是用图集加载的,图集缓存文件还在,但是图集里的小图已经没有了 ...
来源: Laya_社区 发布时间: 20170608
...的那位差不多 他报错的原因是this后面少了名称 this.名称.removeSelf() 2018-07-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 LM20081991 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。...
来源: Laya_社区 发布时间: 20180110
...e onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new LightSprite(): LightSprite Overrides Sprite3D.constructor Defined in laya/d3/core/light/LightSprite.ts:135 ...
来源: Laya3.0_api 发布时间: 20231115
...怎么做?如果没有的话又该如何做呢? 3、destroy销毁 和 removeSelf删除 有什么区别?什么时候该用哪一个? 4、在飞机大战实例教程中,有Laya.Pool对象,但是在API文档中却只能找到laya.utils.Pool,那么Laya.Pool又是从哪里来的?难道是...
来源: Laya_社区 发布时间: 20161031
... this._cells.length - 1; i > -1; i--) { var item = this._cells[i]; item.removeSelf(); arr.push(item); } this._cells.length = 0; } for (var k = startY; k < numY; k++) { for (var l = 0; l < numX; l++) { [b][i] if (arr && arr.length) { [/i][/b] cell = arr.pop(); } else { cell = this.cr...
来源: Laya_社区 发布时间: 20180418