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

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

1. comp,json [ 100%]

...个批量加载json文件,然后等这些文件统一加载完后回调 atlas目录下.json文件与.atlas的区别 动画模板/时间轴F12发布成功在atlas目录下无法生成atlas和json文件 basePath 换https不加载图片只加载json laya.map.TiledMap. createMap()第一个参数,JSO...

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

2. 启用版本管理后有严重bug [ 99%]

...本管理,引擎会强制从网络加载  导致加载失败 2、图集atlas加载卡住,即不发完成事件也没有失败事件,也不会像平时一样打印retry to load...这样的日志,但是可以收到一次onProgress事件值是0.899999   猜测是引擎内部加载图片相...

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

3. XMLHttpRequest cannot load [ 97%]

...42 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry to ...

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

4. clearRes好像没作用,或许我的用法不对 [ 95%]

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

5. 图集版本加载问题 [ 95%]

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

6. 微信小游戏资源总是加载旧的资源 [ 95%]

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

7. 图集类型(ATLAS)文件的的png文件没有加上时间戳 [ 95%]

图集类型(ATLAS)文件的的png文件没有加上时间戳   如图所示,图集文件有配置文件comp.json文件,以及图片合集文件comp.png文件,在1.7.2及以下的版本中,comp.png文件有在url后加时间戳,但是1.7.3及以上版本中都没有给comp.png文件加...

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

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

...的图集图片丢失问题 我用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 添加评论 免费帖...

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

9. atlas目录下.json文件与.atlas的区别 [ 93%]

atlas目录下.json文件与.atlas的区别 在编辑模式下按F12导出时,bin/res/atlas下会生成comp.png和comp.atlas文件,但看教学视频中,没有生成.atlas文件,而是生成了.json文件,这两个文件有什么区别,两个文件的内容除了格式外是一样的,...

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

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

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