大约有 383 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0039 秒)
Laya_社区(319) Laya2.0_文档(40) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
...何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.ATLAS},{url: "images/b...
来源: Laya_社区 发布时间: 20170815
...ya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./Ga...
来源: Laya_社区 发布时间: 20200314
...//lg-f6ejft4c-1256468286 ... 3B%3B var asset = []; asset.push({ url : "res/atlas/game.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "res/atlas/bubbles.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "game/bgGame.png", type:Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.cre...
来源: Laya_社区 发布时间: 20180517
请教——layabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20180809
...:39 @Laya_Aaron:ascii编码? private var assetArr:Array=[{url: "res/atlas/comp.atlas"}, {url: "res/atlas/wxlocal.atlas"}, {url: "res/atlas/middleMoive.atlas"}, {url: "res/atlas/resoutel.atlas"}, {url: "res/atlas/texiaolanse.atlas"}]; 我直接load ...
来源: Laya_社区 发布时间: 20180608
...改动了,不是又要一个个去对一下。 Laya.loader.load(["res/atlas/test1.atlas","res/atlas/test2.atlas","res/atlas/test3.atlas","test/test.json",....]); 各位,你们是怎么做的。 2019-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20191109
...在GameAni.ani内制作 private var aniArr:Array = [ "res/atlas/role/hero.atlas", "res/atlas/role/monster/monsterA/die.atlas", "res/atlas/role/monster/monsterA/move.atlas" ]; Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loa...
来源: Laya_社区 发布时间: 20170619
...问题 var obj:any = { url:"res/atlas/comp.atlas?version=1.0.0", type: Loader.ATLAS };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atlas/c...
来源: Laya_社区 发布时间: 20180427
...端导致内存过高 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
请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas var resArray = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/im...
来源: Laya_社区 发布时间: 20180613