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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)

171. layaair2-cmd安装报错 [ 83%]

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

172. load 跨域请求 [ 83%]

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

173. 求一个downloadfile的使用教程 [ 83%]

...e这个接口是从远端下载文件到手机磁盘,然后你使用Laya.loader.load加载你下载的文件存到引擎的资源对象里,然后你在调用Loader.getRes来获取即可。 2018-09-04 0 1 分享 微博 QZONE 微信 幽默的黑色 赞同来自: 下载后,Laya.loader.load加载...

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

174. 用ide打包后的图片,Texture显示不出来? [ 83%]

...显示出来,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

175. 报无法找到资源,未升级ide之前不报错 [ 83%]

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

176. 我来改代码! [ 83%]

...,临时你也可以通过修改代码来添加保护: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

177. MovieClip 报错 7 [ 83%]

...,临时你也可以通过修改代码来添加保护: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

178. 预加载图集文集在小游戏端导致内存过高 [ 83%]

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

179. clearUnLoaded的bug LayaAirIDE1.7.9 [ 83%]

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

180. 预加载mp3文件 [ 83%]

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