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

大约有 118 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0040 秒)

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

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

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

2. 部分IOS机型在加载mp3音频文件时出错,资源加载异常 [ 99%]

...t; = [             { url: "res/atlas/Images.atlas", type: Laya.Loader.ATLAS },                      { url: "Images/BG_Gray.png", type: Laya.Loader.IMAGE },             { url: "Images/BG_PopWindow.png", type: Laya.Loader.IMAGE },             { ...

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

3. 在加载多个资源的时候,加载进度异常 [ 99%]

在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    c...

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

4. 引擎自带的图集图片丢失问题 [ 98%]

... 我用js加载完图集后 tArray=[{url:"res/atlas/comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖 --> 分享 微博 QZONE ...

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

5. 资源版本问题 [ 98%]

...create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress() { (function loading() { Laya.loader.load([{ url...

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

6. 使用Laya.loader.load时,为什么本地文件只缓存了缓存.png和.jpg。.json、.atlas文件没有缓存 [ 97%]

使用Laya.loader.load时,为什么本地文件只缓存了缓存.png和.jpg。.json、.atlas文件没有缓存 使用Laya.loader.load时,为什么本地文件只缓存了缓存.png和.jpg。.json、.atlas文件没有缓存。以致这些没有缓存的文件每次都从CDN上下载 2019-...

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

7. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 97%]

启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 启用版本管理后,文件都带了hash, var resArray = [ {url: "res/atlas/common.atlas", type: Laya.Loader.ATLAS}, {url: "hall/1_login/login_bg.png", type: Laya.Loader.IMAGE}, {url: "hall/1_login/Bott...

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

8. 请问如何释放atlas和他的png资源 [ 96%]

...ction clickFun():void { url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas"; Laya.loader.load(url,new Handler(this,hh)); //trace( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya.timer.once(1000,1,ddd); } private function ...

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

9. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 95%]

...oadArr:Array = new Array; loadArr= [{url: "res/atlas/hall_new.json", type: Loader.ATLAS}, // {url: "res/atlas/help.json", type: Loader.ATLAS},  // {url: "res/atlas/shop.json", type: Loader.ATLAS}, // {url: "shmjAssets/扣牌文字背景.png", type: Loader.IMAGE}, //这张图有问题。 ]; Laya.loa...

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

10. 游戏系怎么把一些共用的功能独立出来 [ 93%]

...JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...

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