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

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

21. Laya.loader.load 如何同时加载图片数组以及json图集 [ 88%]

...何同时加载图片数组以及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

22. l微信开放域无法显示,但是可以正常传数据 [ 88%]

...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

23. 微信小游戏设置网络动态加载无法显示 [ 88%]

...//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

24. 请教——layabox如何加载多个图集 [ 88%]

请教——layabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

25. 微信小游戏编译出错 [ 87%]

...: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

26. Laya如何分组管理资源加载 [ 86%]

...改动了,不是又要一个个去对一下。   Laya.loader.load(["res/atlas/test1.atlas","res/atlas/test2.atlas","res/atlas/test3.atlas","test/test.json",....]); 各位,你们是怎么做的。 2019-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

27. loadAnimation无法获取动画文件 [ 86%]

...在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

28. 图集版本加载问题 [ 86%]

...问题 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

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

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

30. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 86%]

请问我用网络格式加载成功后,在服务器替换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