大约有 289 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
Laya_社区(177) Laya3.0_api(81) Laya2.0_文档(12) Laya3.0_文档(10) Laya2.0_示例(4) Laya2.0_api(2) laya_api(2) Laya_示例(1)
... sp.graphics.clear() sp.graphics.destroy() tex.destroy() tex.disposeBitmap() tex.bitmap.releaseResource(); } 每次调用都不会刷新,怎么清理都没用内存一下子上百了。...
来源: Laya_社区 发布时间: 20190120
...emoveSelf(); mArmature.removeChildren(); mArmature.destroy(true); Laya.Pool.recover('Skeleton', mArmature); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex, false); } })(); ...
来源: Laya_社区 发布时间: 20181120
...); chrome 调试: addChild(node) { if (!node || this.destroyed || node === this) return node; if (node._zOrder) this._setBit(Const.HAS_ZORDER, true); if (node._parent === this) { ...
来源: Laya_社区 发布时间: 20191203
...型资源释放 请问怎么把骨骼动画的资源释放干净? 我用destroy的话,模型是会销毁,但是内存没有减少,而且再加上用下面方法把.lh的路迳传过去,内存也还是没有改变 role.destroy(); role = null; assetsDispose(url) /**释放资源**/ private fu...
来源: Laya_社区 发布时间: 20170904
...就是tween加了个延时。但是如果延时时间还没到就把对象destroy了,被destroy的对象仍会执行tween并因_style为null而报错。 引擎的错误位置在laya.core.js的8614行,版本1.6.0。 这个this应改为target。 附件 : --> LayaTest.rar 2017-02-24 添加评论 ...
来源: Laya_社区 发布时间: 20170224
...rl name tag WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer numChildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearT...
来源: Laya3.0_api 发布时间: 20231115
...己 this.removeSelf(); //只加载一次,因此直接消毁自己 this.destroy(); }onClose方法并没走到,控制台没输出,请问是什么问题呢 2018-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...
来源: Laya_社区 发布时间: 20180711
...argets.restore(); let dt = _targets.getData(0, 0, w, h);//像素数据 ctx.destroy(); if(!this.aImg){ let aImg:Laya.Image = new Laya.Image(this.aUrl); aImg.scaleX = aImg.scaleY = 2; Laya.stage.addChild(aImg); aImg.mouseEnabled = false; this.aImg = aImg; } //清除目标纹理的像素 let _sourceTex...
来源: Laya_社区 发布时间: 20230328
...; }; //彻底销毁清理一个粒子特效对象 Clean(): void { if (this.destroyed) { return; } this.Recover(); if (this._particle && !this._particle.destroyed) { this._particle.removeSelf(); this._particle.destroy(true); this._particle = null; } this._shuriKenParticle3D = null; this._shur...
来源: Laya3.0_文档 发布时间: 20251010
...; }; //彻底销毁清理一个粒子特效对象 Clean(): void { if (this.destroyed) { return; } this.Recover(); if (this._particle && !this._particle.destroyed) { this._particle.removeSelf(); this._particle.destroy(true); this._particle = null; } this._shuriKenParticle3D = null; this._shur...
来源: Laya3.0_文档 发布时间: 20250104