大约有 406 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(251) Laya2.0_文档(53) Laya3.0_api(44) Laya3.0_文档(41) Laya2.0_示例(7) Laya_示例(6) laya_api(2) Laya2.0_api(2)
...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
...sCfgList 是一组资源类似 { url: CONFIG_MONSTER_LEV, type: Laya.Loader.JSON }, { url: CONFIG_TERRAIN, type: Laya.Loader.JSON }, { url: CONFIG_FORMATION_TEMPLATE, type: Laya.Loader.JSON }, { url: CONFIG_MOVE_PATH, type: Laya.Loader.JSON }, { url: CONFIG_LEVEL, type: Laya.Loader.JSO...
来源: Laya_社区 发布时间: 20170808
用Loader加载完atlas,然后使用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animat...
来源: Laya_社区 发布时间: 20171212
...*=null):void { // var texture:Texture = Loader.getRes("res/Dragon.png"); // var data:ArrayBuffer = Loader.getRes("res/Dragon.sk"); factory = new Templet(); factory.on(Event.COMPLETE, this, onSkeletonDat...
来源: Laya_社区 发布时间: 20160902
使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 引擎版本:2.0.0 问题描述: 在1.7.*下预加载位图字体文件没问题,但升级到2.0.0后,使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时...
来源: Laya_社区 发布时间: 20190221
...dData = [ { "url": 'res/atlas/main.atlas', "type":Laya.loader.ATLAS }, { "url": 'res/atlas/newUser.atlas', "type":Laya.loader.ATLAS }, { 'url': "res/atlas/role_skin.atlas", "type":Laya.loader.ATLAS }, { 'url': "res/atlas/number.atlas&q...
来源: Laya_社区 发布时间: 20180525
...Arr:Array=[ {url:"res/sound/music_gameplay.mp3", type:Loader.SOUND}, {url:"res/sound/button.mp3", type:Loader.SOUND}, {url:"res/sound/mob_true.mp3", type:Loader.SOUND}, {url:"res/sound/mob_hit.mp3", type:Loader.SOUND...
来源: Laya_社区 发布时间: 20181112
...3-30 10:47 你预加载资源怎么写的 yaorao • 2018-03-30 11:29 Laya.loader.load([ { url: "res/common@atlas0.png", type: Loader.IMAGE }, { url: "res/common.fui", type: Loader.BUFFER }, { url: "res/game@atlas0.png", type: Loader.IMAGE }, { url: "res/game.fui&q...
来源: Laya_社区 发布时间: 20180330
...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...
来源: Laya_社区 发布时间: 20180317
...下次再用到load时加载失败 public LoadImg(url:string):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearI...
来源: Laya_社区 发布时间: 20180109