大约有 557 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
...,临时你也可以通过修改代码来添加保护: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
...ate.part [error]Failed to load: res/rotate.part 我的代码: Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya.Loader.JSON); 我再bin/res/rotate.part是存在的 2018-02-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180211
js预加载声音报错 Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20161216
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(200, 200); // 显示默认纹理 switchTextur...
来源: Laya2.0_文档 发布时间: 20210715
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
问一下,使用Laya.loader.clearUnLoaded();以后,再重新开始加载就加载不了了?这个该怎么解决? 2017-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: 你是...
来源: Laya_社区 发布时间: 20171215
...) { ResourceVersion.type = type; ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON); } load没有设置忽略缓存 应该 static enable(manifestFile, callback, type = 2) { ...
来源: Laya_社区 发布时间: 20201218
LayaAir引擎 LoaderManager里的create和load使用上有什么区别?分别用于什么样的场合? 测了一下,调用create的方式,Laya.loader.getRes(xx.lh)获得的是Sprite3D对象,load方式,Laya.loader.getRes(xx.lh)获得的是内容json。 2017-05-11 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20170511
...内容相关的链接 提交 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
Laya2.1.0的BUG!Loader类的loadImage有问题了。快看! 当loadImage(url) 中的 url=null时,(这个null是默认许可的值,别说不可以)。 正确流程:引发error加载错误, 现在的问题,是LAYA引擎js报错。导致程序漰溃。 我们来看看Laya的Loader...
来源: Laya_社区 发布时间: 20190709