• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 289 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)

101. drawToCanvas无法释放内存 [ 69%]

...         sp.graphics.clear()             sp.graphics.destroy()             tex.destroy()             tex.disposeBitmap()             tex.bitmap.releaseResource(); } 每次调用都不会刷新,怎么清理都没用内存一下子上百了。...

来源: Laya_社区 发布时间: 20190120

102. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 69%]

...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

103. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 69%]

...); 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

104. 模型资源释放 [ 69%]

...型资源释放 请问怎么把骨骼动画的资源释放干净? 我用destroy的话,模型是会销毁,但是内存没有减少,而且再加上用下面方法把.lh的路迳传过去,内存也还是没有改变 role.destroy(); role = null; assetsDispose(url) /**释放资源**/ private fu...

来源: Laya_社区 发布时间: 20170904

105. 发现个Tween的严重bug,已找到引擎错误位置 [ 69%]

...就是tween加了个延时。但是如果延时时间还没到就把对象destroy了,被destroy的对象仍会执行tween并因_style为null而报错。 引擎的错误位置在laya.core.js的8614行,版本1.6.0。 这个this应改为target。 附件 : --> LayaTest.rar 2017-02-24 添加评论 ...

来源: Laya_社区 发布时间: 20170224

106. laya.d3.core.Sprite3D_API3.0 [ 68%]

...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

107. 关于官方技术文档中《微信飞机大战》实战开发中监听界面是否关闭 [ 68%]

...己 this.removeSelf(); //只加载一次,因此直接消毁自己 this.destroy(); }onClose方法并没走到,控制台没输出,请问是什么问题呢 2018-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

来源: Laya_社区 发布时间: 20180711

108. setSubPixels画布擦除不掉 [ 68%]

...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

109. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...; }; //彻底销毁清理一个粒子特效对象 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

110. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 68%]

...; }; //彻底销毁清理一个粒子特效对象 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