大约有 2,660 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(58) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...的加载进度呢 我在IDE中创建了整个游戏界面,然后通过loader去加载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听...
来源: Laya_社区 发布时间: 20170225
...游戏加载不了,路径没问题,麻烦看下 加载代码 Laya.loader.load([ { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE }, { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE}, { url:"res/Bag.json", type:Laya.Loader.BUFFER} ...
来源: Laya_社区 发布时间: 20200429
...内容相关的链接 提交 2 个回复 qian 赞同来自: sevennqi Laya.loader.load([{url:"xxx.mp3",type:Loader.SOUND}],Handler.create(this,onComped)) 2018-01-18 1 1 分享 微博 QZONE 微信 sevennqi 赞同来自: 可以和图片, push到同一个var res:Array = []里么? Laya.loader.load...
来源: Laya_社区 发布时间: 20180118
... } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } } laya 2.0.2源码在Texture的 referenceCount不等于0的情况执行这个清理bitmap不会destroy但...
来源: Laya_社区 发布时间: 20190704
...,,,, 加载一张图片,然后获取texture var texture = Laya.loader.getRes(url); 然后texture调用texture.destroy(true); 销毁图片, 那下次要使用该图片的时候,还需要重新加载吗,, 是不是我下次使用的时候,我可以直接去调用加载load( load...
来源: Laya_社区 发布时间: 20171226
在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"], Laya.Handler.create(this, function(){ }), Laya.Handler.create(this, function(e){ c...
来源: Laya_社区 发布时间: 20180101
... 1 个回复 Monica - 知识达人 赞同来自: jxfcwys 直接使用Laya.loader.clearRes("url")即可 你这样的方式是虽然可以清理显存中的资源,但是并不一定会清理loader引用的资源 2017-09-22 1 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...
来源: Laya_社区 发布时间: 20170922
...的txt文件中的内容 var testPath ="res/Test.txt"; console.log( Laya.loader.load(testPath)); console.log(Laya.Loader.getRes(testPath)); 这里打印的是 LoaderManager {retryNum: 1, retryDelay: 0, maxLoader: 5, _loaders: Array(4), _loaderCount: 1…} undefined 并不是文本的内容,求支...
来源: Laya_社区 发布时间: 20171009
... var arr:Array = new Array(); Laya.loader.load("test.json", Handler.create(this, onLoaded), null, Loader.ATLAS); //var json:JSON = Loader.getRes("test.json"); //trace(json); } ...
来源: Laya_社区 发布时间: 20170413
...; this.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 Sprit...
来源: Laya_示例 发布时间: 20251209