大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1019) Laya2.0_文档(79) Laya_示例(51) Laya3.0_文档(46) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...d to ~\AppData\Roaming\npm\node_modules\layaair2-cmd internal/modules/cj s/loader.js:638 throw err; ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\gulp-babel' at Function.Module._load (internal/modules/cjs/loader.js:56...
来源: Laya_社区 发布时间: 20200113
load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170719
...e这个接口是从远端下载文件到手机磁盘,然后你使用Laya.loader.load加载你下载的文件存到引擎的资源对象里,然后你在调用Loader.getRes来获取即可。 2018-09-04 0 1 分享 微博 QZONE 微信 幽默的黑色 赞同来自: 下载后,Laya.loader.load加载...
来源: Laya_社区 发布时间: 20180904
...显示出来,Texture报错、、、说找不到图片 代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){ var aa = new Sprite(); Laya.stage.addChild(aa); var texture = new Laya.Texture(); texture.loa...
来源: Laya_社区 发布时间: 20171226
...览: 3508 关注: 3 人 逸辰 • 2023-07-19 22:52 onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.jpg"] ).then(() =&...
来源: Laya_社区 发布时间: 20230713
...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...
来源: Laya_社区 发布时间: 20180908
...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...
来源: Laya_社区 发布时间: 20180908
...y: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1...
来源: Laya_社区 发布时间: 20180122
... arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")] Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) Laya.loader.clearUnLoaded() Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) } function onComplete(){ trace("complete") } Resources...
来源: Laya_社区 发布时间: 20190630
...内容相关的链接 提交 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