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

大约有 8 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0033 秒)

1. 批量创建图片后,怎样通过索引删除图片 [ 100%]

...对象及从父节点移除自己。</p>          * @param destroyChild  (可选)是否同时销毁子节点,若值为true,则销毁子节点,否则不销毁子节点。          */         public function destroy(destroyChild:Boolean = true):void {} 2018-06-2...

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

2. Animation未释放资源的引用 [ 97%]

Animation未释放资源的引用 先上源码 destroy(destroyChild: boolean = true): void { this.stop(); super.destroy(destroyChild); this._frames = null; this._labels = null; }animation的destory方法,只是将_frames赋值为null,并没有对_frames的graphics进行destroy, 这样会导...

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

3. Laya 绑定显示内容到骨骼动画 [ 97%]

...urce.offestX+position.x; source.y=source.offestX+position.y; } }  destroy(destroyChild?:boolean):void{ this.timer.clear(this,this.__updateBinds); this.__bindList.length=0; this.__bindList=null; super.destroy(destroyChild); } }   2. 可绑定到骨骼的内容 /** * 可绑定到骨骼的内容(...

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

4. Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 [ 96%]

...r监听,移除子对象及从父节点移除自己。</p> * @param destroyChild (可选)是否同时销毁子节点,若值为true,则销毁子节点,否则不销毁子节点。 */ destroy(destroyChild: boolean = true): void { this.destroyed = true; this._destroyAllComponent(); this._...

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

5. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 95%]

...+ _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress && _progress.destroy(destroyChild); _proMask = null; _progress = null; } /** * 进度条皮肤...

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

6. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 88%]

...降。   清理方法            override public function destroy(destroyChild:Boolean = true):void {             if(effect3D != null){                 effect3D.destroy();                 effect3D = null;             }             super.des...

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

7. Image设置skin的Bug [ 87%]

...设置skin方式加载资源,然后快速关闭界面,Image被 destroy(destroyChild: boolean = true): void {         super.destroy(true);         this._bitmap && this._bitmap.destroy();         this._bitmap = null;     }   2,当前资源加载完成...

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

8. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 50%]

...    this.mRelative.setTo(0, 0);         }         public destroy(destroyChild: boolean = true): void {             this.clearAll();             this.mRelative = null;             super.destroy(destroyChild);         } 这样,那看看具体怎么使用:  Var enti...

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