大约有 717 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0045 秒)
Laya_社区(623) Laya2.0_文档(49) Laya3.0_文档(25) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...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
... 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
...文件夹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
...源后增加了Hash后缀,比如某个文件发布后: release\web\res\atlas\ui\sharedcp094faf36.png 加上了094faf36的后缀 然后我启动游戏的流程如下: ResourceVersion.enable( "version.json?" + Math.random(), Handler.create(this, this.onVersonLoaded)); 然而发...
来源: Laya_社区 发布时间: 20180115
...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
...示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
...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
LayaAri游戏图集还原脚本 https://github.com/SmallRuralDog/atlas-restore # LayaAri游戏图集还原脚本 ### 运行环境 - Python 2.7 - PIL ### 使用方法 ``` # python main.py '还原文件' python main.py ./game.atlas ``` > 注意 : `atlas文件`和`图片文件`需在同一个目...
来源: Laya_社区 发布时间: 20191021
... 肯定对这个图集做了预加载了 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
...成后我们会看到输出目录的3个文件,分别为.rec , Girl.atlas 和 Girl.png 看到这3个文件说明我们成功的将图集打包,图4 接下来我们需要将打包后的atlas和png文件存放到项目的bin/h5/res路径下, .rec是打包工具用的文件,我们可以不...
来源: Laya_社区 发布时间: 20171221