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

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

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

...端导致内存过高 let resArray: 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.Ha...

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

112. 通用发布 · LayaAir3.0文档 · LAYABOX [ 87%]

...的代码拆分到了分包script文件夹中。 三、打包图集 图集(Atlas)是游戏开发中常见的一种美术资源,通过IDE发布流程将多张图片合并成一张大图,并通过atlas格式的文件存放原始图片资源信息。 图3-1就是采用LayaAirIDE打包好的一张pn...

来源: Laya3.0_文档 发布时间: 20240926

113. 图集类型(ATLAS)文件的的png文件没有加上时间戳 [ 87%]

图集类型(ATLAS)文件的的png文件没有加上时间戳   如图所示,图集文件有配置文件comp.json文件,以及图片合集文件comp.png文件,在1.7.2及以下的版本中,comp.png文件有在url后加时间戳,但是1.7.3及以上版本中都没有给comp.png文件加...

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

114. layacmd在centOS 6.5上运行出错 [ 87%]

...tools/node-v8.9.0-linux-x64/lib/node_modules/layacmd/ProjectExportTools/TP/atlas-generator" "/home/sgf_ebuild/LayaAirIDE/packParam.json" Waiting for pics packing execute: "/data/tools/node-v8.9.0-linux-x64/lib/node_modules/layacmd/ProjectExportTools/TP/atlas-generator" "/home/sgf_ebuild/LayaAirIDE/p...

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

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

...createChildren():void { super.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)); } privat...

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

116. laya的资源加载怎么管理,没有资源组吗 [ 87%]

...比如我打开技能模块,需要加载技能模块的资源,包括 a.atlas b.atlas c.atlas d.mp3 e.mp3 f.json g.json 那么laya里是怎么一起加载这个模块的资源的。 不能用Laya.loader.load([a.atlas, b.atlas,...,....])这样加载吧,那这样管理不是很麻烦   如果除...

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

117. 如何显示动画ani [ 87%]

...可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import ui.EffectAnimationD...

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

118. 出现这个怎么解决loader callback cost a long time:1530 [ 87%]

...opo 赞同来自: 如果此排列 loadArr.push({url:HitNum1URL,type:Loader.ATLAS,priority:1 }); loadArr.push({url:HitNum2URL,type:Loader.ATLAS,priority:1 }); loadArr.push({url:HitNum4URL,type:Loader.ATLAS,priority:1 }); 就HitNum1URL为loader callback cost a long time:2169 如果此顺序 loadArr.pu...

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

119. 微信小游戏图片加载不出来 [ 87%]

...r.IMAGE }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handl...

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

120. 使用外部引擎播放layaair制作的.ani [ 87%]

...擎播放layaair制作的.ani layaair上制作了动画导出后的png和atlas, 正常播放。 把这些复制到我的项目里 可是播放不出来,在chome的network里看到请求到的数据只有card.atlas, card.png,其他打包成图集的png都没有。 导致动画播放不了,请教...

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