大约有 2,781 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
Laya_社区(2462) Laya2.0_文档(107) Laya3.0_文档(58) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...错 Laya同时加载图片和引用图片的资源时会报错,应该是Loader那边Event.COMPLETE事件的问题 Laya.loader.create([ { url: "res/Sword 10 Blue Gold.lmat", type: Laya.Loader.MATERIAL}, { url: "res/Sword...
来源: Laya_社区 发布时间: 20220107
...了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTexture(t, 0, 0); ...
来源: Laya_社区 发布时间: 20170224
...要代码如下 let loaditem = [{ url: "test.zip", type: Laya.Loader.PLFB }] Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) { let item = 'res/layabox.png' let getres = Laya.loader.getRes(item...
来源: Laya_社区 发布时间: 20210604
...不能正常播放,也没有任何错误提示 然后尝试先调用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
更新到1.5.4的问题 用Laya.loader加载报错:RangeError: Maximum call stack size exceeded 出现情景:关卡选择界面进入到游戏界面时,用Laya.loader加载了很多游戏资源,游戏结束后,返回到关卡选择界面前,通过Laya.loader.clearres接口清理了游戏相...
来源: Laya_社区 发布时间: 20161213
...场景切换的时候 如何把当前场景下的资源销毁掉呢 Laya.loader.clearTextureRes("res/fighter.atlas") 这一步 销毁的是图集所保护的所有资源吗?还是说 需要 把所有用到的小图地址都销毁一遍 比如 Laya.loader.clearTextureRes("res/re1.jpg"); Laya.loader...
来源: Laya_社区 发布时间: 20171122
...createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.ATLAS }, { url: "view/MyView.json", type: Loader.JSON }, ] Laya.loader.load(assets, Handler.create(this, this.onLoaded)); } private onLoaded():void { this.creat...
来源: Laya_社区 发布时间: 20180113
... { url: this.zombie_anim_path4 }, { url: this.zombie_anim_path5 }, ]; Laya.loader.retryNum = 0; Laya.loader.create(res3DArr, Laya.Handler.create(this, this.onRes3DLoaded), null); 结论:onLoad时checkNext触发endLoad,会重置customParse属性,onError的时候没有触发这个逻辑,导...
来源: Laya_社区 发布时间: 20180305
...动画失败 请教下微信小游戏的内存和数据缓存? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小游戏只缓存图片和声音 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 关...
来源: Laya_社区 发布时间: 20180718
...下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.lo...
来源: Laya_社区 发布时间: 20180816