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

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

141. 报错 Laya 的标识符中重复 [ 83%]

...aleMode = "showall"; Laya.stage.bgColor = "#232628"; var res = [ {url:"res/atlas/loading.json",type:Laya.Loader.ATLAS}, //{url:"res/atlas/loading.png",type:Laya.Loader.IMAGE}, //{url:"res/atlas/loading/01.png",type:Laya.Loader.IMAGE} ]; Laya.loader.load(res); showact(); })(); 2016-12-30 添加评论...

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

142. 请教下微信小游戏的内存和数据缓存? [ 83%]

... 2018-01-22 10:37 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.loa...

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

143. LayaIDE2.1资源发布目录更改后,版本生成的version.json有误! [ 83%]

...文件夹A里比如,在项目设置里把资源发布目录改成bin/A/res/atlas,把index.html目录改成bin/A, 发布微信小游戏生成的version.json文件有问题,内容是"A/res/atlas/xxx.png":"A/res/atlas/xxx-xxxxxx.png" 正确的应该是 "res/atlas/xxx.png":"res/atlas/xxx-xxxxxx.p...

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

144. 最新的ResourceVersion发布以后加载的url不正确 [ 83%]

...源后增加了Hash后缀,比如某个文件发布后: release\web\res\atlas\ui\sharedcp094faf36.png 加上了094faf36的后缀   然后我启动游戏的流程如下: ResourceVersion.enable(     "version.json?" + Math.random(),     Handler.create(this, this.onVersonLoaded));   然而发...

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

145. clearRes好像没作用,或许我的用法不对 [ 83%]

...le.log("释放资源false")             Laya.loader.clearRes("res/atlas/comp.json", false);             Laya.loader.clearRes("res/atlas/comp.png", false);         }         if (e.keyCode == 66) {//B             console.log("释放资源 true")          ...

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

146. 1.6.2打包的图集不能使用 [ 82%]

...示longtime  。。在断点的情况下。 Laya.loader.load([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/quest...

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

147. 微信小游戏资源总是加载旧的资源 [ 82%]

...ta   我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS},         {url: "res/atlas/xxx2.json", type: Loader.ATLAS},          {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在这之前已经加载并...

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

148. LayaAri游戏图集还原脚本 [ 81%]

LayaAri游戏图集还原脚本 https://github.com/SmallRuralDog/atlas-restore   # LayaAri游戏图集还原脚本 ### 运行环境 - Python 2.7 - PIL ### 使用方法 ``` # python main.py '还原文件' python main.py ./game.atlas ``` > 注意 : `atlas文件`和`图片文件`需在同一个目...

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

149. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 81%]

... 肯定对这个图集做了预加载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的...

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

150. 【分享】图集打包工具 使用方法及注意事项 [ 81%]

...成后我们会看到输出目录的3个文件,分别为.rec , Girl.atlas 和 Girl.png 看到这3个文件说明我们成功的将图集打包,图4 接下来我们需要将打包后的atlas和png文件存放到项目的bin/h5/res路径下, .rec是打包工具用的文件,我们可以不...

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