大约有 2,660 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0077 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(58) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...sCfgList 是一组资源类似 { url: CONFIG_MONSTER_LEV, type: Laya.Loader.JSON }, { url: CONFIG_TERRAIN, type: Laya.Loader.JSON }, { url: CONFIG_FORMATION_TEMPLATE, type: Laya.Loader.JSON }, { url: CONFIG_MOVE_PATH, type: Laya.Loader.JSON }, { url: CONFIG_LEVEL, type: Laya.Loader.JSO...
来源: Laya_社区 发布时间: 20170808
...取多个本地json文件 onAwake(): void { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读...
来源: Laya_社区 发布时间: 20220819
...res/3d/Player.zip,则使用方法为[code]// Laya 2.x及以下版本 Laya.loader.create([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code][code]// Laya3.x版本 Laya.loader.load([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code] 加载资源使用:[code]// Laya 2.x及以下版本 let pla...
来源: Laya_社区 发布时间: 20230316
如何判断加载资源是否成功? Laya.loader.load(["res/book00"+2+".txt"], Laya.Handler.create(this, onLoaded(i))) 2018-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loade...
来源: Laya_社区 发布时间: 20180406
...Arr:Array=[ {url:"res/sound/music_gameplay.mp3", type:Loader.SOUND}, {url:"res/sound/button.mp3", type:Loader.SOUND}, {url:"res/sound/mob_true.mp3", type:Loader.SOUND}, {url:"res/sound/mob_hit.mp3", type:Loader.SOUND...
来源: Laya_社区 发布时间: 20181112
...ion): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", type: Laya.Loader.ATLAS }, { url: resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH, type: Lay...
来源: Laya_社区 发布时间: 20170905
请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? 还有一些细节就是,引擎会自动对比白名单里有没有这个资源吗?是没有就去网络动态加载还说说只有把这个路径或者文件加入了白名单...
来源: Laya_社区 发布时间: 20180531
...容 { "name":"zzy" } 第一种方式 private on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(...
来源: Laya_社区 发布时间: 20180119
资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...
来源: Laya_社区 发布时间: 20161230
使用Laya.loader.create方法加载3d资源,h5运行无法完成加载。浏览器运行可以,h5不行 2018-05-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 波波 赞同来自: h5和浏览器难道不...
来源: Laya_社区 发布时间: 20180511