大约有 730 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(632) Laya2.0_文档(49) Laya3.0_文档(29) 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
...1、图集基础 1.1 什么是图集 在游戏开发中,图集(Texture Atlas)的全称是大图合集,是一种整合多张小图片为一张大图片的资源优化技术,具有减少DrawCall、减少纹理切换次数、减少I/O请求等优势。是2D产品类型用于提升渲染性能...
来源: Laya3.0_文档 发布时间: 20251128
...文件夹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
...自: 和平台没关系,这样搞,怎么发布都会报错。 spine的atlas和我们引擎的atlas虽然同名,但不是同样的东西。所以我们根据这个名字,视为引擎的atlas加载就会报错。 正常的加载流程里,加载spine,不管是IDE的加载,还是代码加...
来源: Laya_社区 发布时间: 20250417
...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
... 肯定对这个图集做了预加载了 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