大约有 118 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0044 秒)
...游戏加载不了,路径没问题,麻烦看下 加载代码 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
...nction LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResCompl...
来源: Laya_社区 发布时间: 20170228
... 引擎版本1.7.18beta 我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS}, {url: "res/atlas/xxx2.json", type: Loader.ATLAS}, {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(... 并且在...
来源: Laya_社区 发布时间: 20180505
...omp.atlas?version=1.0.0", type: Loader.ATLAS };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atlas/comp.png?version=1.0.0 这个能不能解决(一个项目加载另一个项...
来源: Laya_社区 发布时间: 20180427
worker如何使用 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, () => { alert("onLoaded!"); }), null, Laya.Loader.ATLAS, 1, true, null, false...
来源: Laya_社区 发布时间: 20190111
...以在Laya.MiniAdpter.getFileList()查找到对应缓存 但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取 如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...
来源: Laya_社区 发布时间: 20180825
...是什么? 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 .sk , .lm , .ltc , .lh, .ani等后缀名的文件是如何制作的? 问题状态 最新活动: 2018-05-08 19:46 浏览: 5666 关注: 2 人
来源: Laya_社区 发布时间: 20180508
...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...
来源: Laya_社区 发布时间: 20171207
...的示例代码为: ```javascript //atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图...
来源: Laya2.0_文档 发布时间: 20210715
如何解析json文件并获取某对象值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经...
来源: Laya_社区 发布时间: 20171016