大约有 45 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)
...ts.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动...
来源: Laya2.0_文档 发布时间: 20210714
...ts.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动...
来源: Laya2.0_文档 发布时间: 20200929
...aniFly.visible = false; //销毁 Texture 使用的图片资源 Laya.loader.clearTextureRes(this.PathBg); Laya.loader.clearTextureRes(this.PathFly); this.isDestroyed = true; this.txt.text = "恢复"; } }; return GameMain; }()); new GameMain(); })(leo || (leo = {}));namespace leo { import Sprite = lay...
来源: Laya_示例 发布时间: 20260303
...exture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清理texture里面使用的图片资源,并不销毁texture,再次使用到的时候会自动恢复图片资源 而clearRes会彻底销毁texture,导致不能再使用;clearTextureRes能确保立...
来源: Laya_社区 发布时间: 20190312
...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
...cessors loading Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasListener load loadPackage off offAll offAllCaller on once cacheRes clearRes clearResByGroup createNodes getAtlas getBaseTexture getRes getTexture2D registerLoader setGroup w...
来源: Laya3.0_api 发布时间: 20231115
...要一清除,所有的该图片都失效,引用计数不是有多处?clearTextureRes方法,可解决该问题,但会导致现有的图片重新渲染闪一下,并不完美。 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20180227
...的时候进行了清理,大多数的放用的方法是” Laya.Loader.clearTextureRes(url); 比如这个页面的关闭 Close(): void { IconManager.Instance().clearTexture(this.leftverticaldrawing.skin);//清理某个动态贴图的资源(clearRes方法清理png) ...
来源: Laya_社区 发布时间: 20200915
...前我会先清理上一个动画的资源 this.anim.clear(); Laya.loader.clearTextureRes( url); 别抢小虎 • 2018-05-08 10:52 现在游戏逻辑有点多,只能这样描述一下流程 w1114367261 • 2018-05-08 14:36 你清理上一个动画的资源是不是把整个动画的图集都清理...
来源: Laya_社区 发布时间: 20180507