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

大约有 406 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)

91. 异步加载一个UI对象时的问题 [ 82%]

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

92. app打包资源加载不完全 [ 81%]

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

93. 用Loader加载完atlas,然后使用animation播放问题 [ 81%]

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

94. Templet资源删除不掉 [ 81%]

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

95. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 81%]

使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 引擎版本:2.0.0 问题描述: 在1.7.*下预加载位图字体文件没问题,但升级到2.0.0后,使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时...

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

96. 小游戏内 个别手机出现图片花了 像马赛克一样的东西,很多图片不显示 [ 80%]

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

97. Mac下LayaAirIDE1.7.20版本声音预加载失败,但windows下同个版本加载正常 [ 80%]

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

98. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 80%]

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

99. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 80%]

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

100. 图集资源clearRes清除之后下次再用到load时加载失败 [ 80%]

...下次再用到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