大约有 10 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)
缓存清除方法clearTextureRes Loader.clearTextureRes=function(url){ url=URL.formatURL(url); var arr=laya.net.Loader.getAtlas(url); var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url); ...
来源: Laya_社区 发布时间: 20171213
...esByGroup(group:String):void[static] 根据分组清理资源。 Loader clearTextureRes(url:String):void[static] 销毁Texture使用的图片资源,保留texture壳,如果下次渲染的时候,发现texture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes...
来源: Laya2.0_api 发布时间: 20190513
Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 1、引擎和ide版本都是2.1.2 2、点击屏幕会绘制一个光圈特效 3、点击第1次加载资源使用后释放调用Laya.loader.clearTextureRes 4、再点第2次 1、图片代码中指示出必然会...
来源: Laya_社区 发布时间: 20200317
...ResByGroup(group:String):void 根据分组清理资源。 LoaderManager clearTextureRes(url:String):void 销毁Texture使用的图片资源,保留texture壳,如果下次渲染的时候,发现texture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清...
来源: Laya2.0_api 发布时间: 20190513
...Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创...
来源: Laya3.0_api 发布时间: 20231102
...源 如果没有就走加载 lifereset • 2017-12-06 18:24 释放资源用clearTextureRes确实是可以的 lifereset • 2017-12-06 18:46 对不住哥们 我知道为啥了。。是我的问题 十分抱歉! wudi199553 • 2017-12-06 19:33 0.0
来源: Laya_社区 发布时间: 20171206
...行,直接调用Loader的clearRes传一个路径,或者调用Loader的clearTextureRes都可以清理掉文理(仅限图片尺寸小于512的),你清理完在用的时候需要自己在重现加载,要不找不到图片! 2017-12-27 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20171226
...ader.cancelLoadByUrl(imgName); Laya.loader.clearTextureRes(imgName); Laya.loader.clearRes(imgName); } 也会调用Laya.loader.cancelLoadByUrl(imgName);清理掉当前动画一些没有加载完成的图片资...
来源: Laya_社区 发布时间: 20200417
...learImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRes(this.name); Laya.Loader.clearRes(this.name); this.name = ""; } } } 附件 : --> 2019-03-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20190315
...请教一下 设置sortingFudge没有效果,如何更改渲染层级? clearTextureRes无法恢复(另文本纹理释放有bug,经常出现文本渲染混乱) 问题状态 最新活动: 2021-02-22 16:36 浏览: 241 关注: 2 人
来源: Laya_社区 发布时间: 20201230