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

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

1. Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 [ 100%]

Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载     /**     *销毁纹理。     */     __proto.destroy=function(force){         (force===void 0)&& (force=false);         if (!this._destroyed){ ...

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

2. Texture.destroy()方法设计有问题 [ 97%]

Texture.destroy()方法设计有问题 在不通过使用强制销毁的情况下 引用系数会多减去一次。Resource.removeReference()多调用一次 2018-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

3. 分享:DrawToCanvas内存释放问题! [ 95%]

...ps://ask.layabox.com/question/1726) if(htmlC&&texture) { texture.destroy(); } //截屏主要代码 count ++; htmlC=sp.drawToCanvas(800,800,0,0);//绘制 当前Sprite 到 Canvas 上,并返回一个HtmlCanvas。 texture= new Texture(htmlC);//将htmlCanvas赋值给texture对象 sp2 = new Sp...

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

4. laya.resource.Texture [ 93%]

...rties PropertyDefined By  bitmap : Texture2D 获取位图。 Texture  destroyed : Boolean[read-only] 获取是否已经销毁。 Texture  height : Number 实际高度。Texture  offsetX : Number = 0沿 X 轴偏移量。Texture  offsetY : Number = 0沿 Y 轴偏移量。Texture  sourceHei...

来源: Laya2.0_api 发布时间: 20190513

5. laya.resource.Texture_API3.0 [ 92%]

... Texture Index Constructors constructor Properties _id _sizeGrid _stateNum destroyedImmediately lock name offsetX offsetY sourceHeight sourceWidth url uuid DEBUG Accessors bitmap cpuMemory destroyed gpuMemory height id obsolute referenceCount uv valid width cpuMemory gpuMemory Methods _addReference ...

来源: Laya3.0_api 发布时间: 20231115

6. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 91%]

...#### *version :2.0.2beta Update:2019-5-8* ​ Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象...

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

7. laya.resource.AtlasResource_API3.0 [ 91%]

...archy Resource AtlasResource Index Constructors constructor Properties _id destroyedImmediately dir frames lock name textures url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _se...

来源: Laya3.0_api 发布时间: 20231115

8. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 91%]

...#### *version :2.0.2beta Update:2019-5-8* ​ Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象...

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

9. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 90%]

...#### *version :2.0.2beta Update:2019-5-8* ​ Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象...

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

10. 关于资源回收的问题 [ 90%]

...,执行完后是否需要手动调用释放资源还是依赖的caller在destroy阶段会释放掉这部分资源?如果需要手动回收的话,调用clear和clearAll即可还是需要调用其他函数? Video的对象destroy后如果有播放声音且循环播放的话,声音还会继续...

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