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

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

571. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 50%]

....Sprite = new Laya.Sprite();` 3. `//将sp内部引用设置为null` 4. `sp.destroy();` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...

来源: Laya2.0_文档 发布时间: 20210715

572. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 49%]

...例 var sp:Sprite = new Sprite(); //将sp内部引用设置为null sp.destroy(); ``` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收...

来源: Laya2.0_文档 发布时间: 20210715

573. 分包后, 资源加载问题 [ 49%]

...ing100.prototype; console.log("kk7") __proto.cleanMe=function(){ this.load.destroy(true); } console.log("kk8") loading100.FINISH="FN"; console.log("kk9") return loading100; })(Sprite) //class ui.loadingjzaUI extends laya.ui.View var loadingjzaUI=(function(_super){ function loadingjzaUI(){ this.loadi...

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

574. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 48%]

...些属性,需重新赋值此属性才可生效。 ShurikenParticleSystem destroyed : Boolean[read-only] 获取是否已销毁。 GeometryFilter  duration : Number粒子运行的总时长,单位为秒。ShurikenParticleSystem  emission : Emission 获取发射器。 ShurikenParticleSystem  em...

来源: laya_api 发布时间: 20170929

575. 颜色滤镜 差值变化 [ 47%]

...er(): Laya.ColorFilter { return this.colorFilterNone(0xffffff); }  public destroy() { if (this.targets != null) { this.targets = null; } ColorTool.instance = null; } } }     用法 let sp:Laya.Sprite=new Laya.Sprite(); ColorTool.getInstance().addColorTarget(sp); ColorTool.getInstance().targetsCha...

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

576. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 45%]

...含URL.basePath的部分 __proto.onComplete=function(content){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用formatPath进...

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

577. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 34%]

...ar sp:Laya.Sprite = new Laya.Sprite(); //将sp内部引用设置为null sp.destroy(); 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...

来源: Laya3.0_文档 发布时间: 20231008