大约有 321 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 /** *销毁纹理。 */ __proto.destroy=function(force){ (force===void 0)&& (force=false); if (!this._destroyed){ ...
来源: Laya_社区 发布时间: 20190704
Texture.destroy()方法设计有问题 在不通过使用强制销毁的情况下 引用系数会多减去一次。Resource.removeReference()多调用一次 2018-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180505
...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
...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
... 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
...#### *version :2.0.2beta Update:2019-5-8* Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象...
来源: Laya2.0_文档 发布时间: 20210715
...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
...#### *version :2.0.2beta Update:2019-5-8* Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象...
来源: Laya2.0_文档 发布时间: 20210715
...#### *version :2.0.2beta Update:2019-5-8* Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象...
来源: Laya2.0_文档 发布时间: 20210715
...,执行完后是否需要手动调用释放资源还是依赖的caller在destroy阶段会释放掉这部分资源?如果需要手动回收的话,调用clear和clearAll即可还是需要调用其他函数? Video的对象destroy后如果有播放声音且循环播放的话,声音还会继续...
来源: Laya_社区 发布时间: 20170509