大约有 289 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
Laya_社区(177) Laya3.0_api(81) Laya2.0_文档(12) Laya3.0_文档(10) Laya2.0_示例(4) Laya2.0_api(2) laya_api(2) Laya_示例(1)
关于removeChildren、 destroy和destroyChildren的疑惑 请教一下: 1、removeChildren的对象是否只有在 移除自身的事情监听,移除自身的timer监听、移除所有引用的情况下才可能被清除? 2、我把下面的对象添加到stage中 var SightBead = (functio...
来源: Laya_社区 发布时间: 20171012
...资源无法释放 1. drawToCanvas在native上获取的HTMLCanvas,调用destroy,会崩溃 2. native上如果调用release并不能释放内存,会内存泄露 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...
来源: Laya_社区 发布时间: 20181219
progressbar设置皮肤后, 马上destroy会报bug set skin(value: string) { if (this._skin != value) { this._skin = value; if (this._skin && !Loader.getRes(this._skin)) { ILaya.loader.load(this._skin, Handler.create(this, this._skinLoaded), null, Loader.IMAGE, 1); // TODO TS } else { this....
来源: Laya_社区 发布时间: 20200108
Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 /** *销毁纹理。 */ __proto.destroy=function(force){ (force===void 0)&& (force=false); if (!this._destroyed){ ...
来源: Laya_社区 发布时间: 20190704
如果当作用域 this 被destroy ,那么this下绑定的事件需要提起清掉嘛 2017-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 如果是组件精灵本身的事件的话...
来源: Laya_社区 发布时间: 20170225
Sprite的destroy destroyChildren() { if (this._children) { for (var i = 0, n = this._children.length; i < n; i++) { this._children[0].destroy(true); } } 这几行代码来自laya.core.js的12544行开始的,for循环里的this._children[0]是不是应该是this._children[i]?还是我的使用...
来源: Laya_社区 发布时间: 20200421
...rm.position = new Laya.Vector3(0, 0, 0); item.destroy(); item = null; tarItem.destroy(); tarItem = null; this.camera.removeSelf(); this.camera.dest...
来源: Laya_社区 发布时间: 20191102
请问node 在destroy的时候 不发出事件是否有什么特殊原因吗 如题目前我需要在node destroy的时候处理一些事件,我想扩展引擎加上这个事件,请问是否可行。 2017-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20171120
创建laya的视图销毁destroy()清除不了 创建laya的视图销毁destroy()清除不了。 class Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this...
来源: Laya_社区 发布时间: 20170221
关于 this.destroy(true); 这个调用是否会把 当前类的所有子对象和自己删除 然后也会清除里面的各种监听事件么?原理大概是怎么样的? 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20171214