大约有 406 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(251) Laya2.0_文档(53) Laya3.0_api(44) Laya3.0_文档(41) Laya2.0_示例(7) Laya_示例(6) laya_api(2) Laya2.0_api(2)
开放域中不能使用Laya.loader.load? 报错 WAGameSubContext.js:3 Uncaught TypeError: wx.getFileSystemManager is not a function 2018-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来...
来源: Laya_社区 发布时间: 20180509
...码 先预加载 skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE }); 然后就是一些和服务器交互的操作了,在接到某一条数据,需要用到资源的时候的代码; for (var i:Number = 0; i < allArea.length;i++) { var but:Bu...
来源: Laya_社区 发布时间: 20170320
...图片加载不出来 var resArray = [{ url: "ui/BG/Start.png", type: Laya.Loader.IMAGE }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler....
来源: Laya_社区 发布时间: 20181105
...let resArr = [ {url:"wxlocal/enemy.png",type:Laya.Loader.IMAGE}, {url:"wxlocal/bg2.jpg",type:Laya.Loader.IMAGE} ]; Laya.loader.load(resArr, Laya.Handler.create(null, onLoaded)); function onLoaded(): void { Laya.URL.basePath ="https://xxx....
来源: Laya_社区 发布时间: 20191122
...出资源无法加载未打包资源 如图设置 修改加载代码 Laya.loader.load([ { url: "res/atlas/comp.atlas", type: Loader.ATLAS }, { url: "unpack/comp/image.png", type: Loader.IMAGE }, { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.on...
来源: Laya_社区 发布时间: 20171230
1.6.2打包的图集不能使用 图集大小只有77K 了, 然后loader.load之后,总是显示longtime 。。在断点的情况下。 Laya.loader.load([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(long...
来源: Laya_社区 发布时间: 20170306
...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...
来源: Laya_社区 发布时间: 20180323
...不能正常播放,也没有任何错误提示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/h...
来源: Laya_社区 发布时间: 20180422
...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
...ZONE 微信 Monica - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader ...
来源: Laya_社区 发布时间: 20171227