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

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

361. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 85%]

...的加载进度呢 我在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

362. layabox加载fairygui发布的二进制文件报错 [ 85%]

...游戏加载不了,路径没问题,麻烦看下   加载代码 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

363. 预加载mp3文件 [ 84%]

...内容相关的链接 提交 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

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

...      }             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

365. texture 的销毁问题,,,, [ 84%]

...,,,, 加载一张图片,然后获取texture var texture = Laya.loader.getRes(url); 然后texture调用texture.destroy(true); 销毁图片, 那下次要使用该图片的时候,还需要重新加载吗,,  是不是我下次使用的时候,我可以直接去调用加载load( load...

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

366. 在加载多个资源的时候,加载进度异常 [ 84%]

在加载多个资源的时候,加载进度异常 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

367. 麻烦帮忙看下为什么显存资源未卸载干净? [ 84%]

... 1 个回复 Monica - 知识达人 赞同来自: jxfcwys 直接使用Laya.loader.clearRes("url")即可 你这样的方式是虽然可以清理显存中的资源,但是并不一定会清理loader引用的资源 2017-09-22 1 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

368. LayaAir 如何读取资源中的txt文件中的内容 [ 84%]

...的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

369. 读取json对象 [ 84%]

...           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

370. 加载-销毁Texture使用的图片资源 [ 84%]

...; 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