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

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

11. 关于图集和配置文件(json || atlas)的问题 [ 79%]

IDE相关问题 关于图集和配置文件(json || atlas)的问题 很对零散的图片(或动作图集),都需要生成图集和配置文件放到项目用这里能理解 问题是 1.json和atlas的区别,什么情况下用哪个? 2.为什么不把图集和配置文件(json||atla...

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

12. 创建图集的问题 [ 77%]

... //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(var i=1...

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

13. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 76%]

...源 如图设置 修改加载代码 Laya.loader.load([     { url: "res/atlas/comp.atlas", type: Loader.ATLAS },     { url: "unpack/comp/image.png", type: Loader.IMAGE },     { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Ret...

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

14. 最新的ResourceVersion发布以后加载的url不正确 [ 73%]

...源后增加了Hash后缀,比如某个文件发布后: release\web\res\atlas\ui\sharedcp094faf36.png 加上了094faf36的后缀   然后我启动游戏的流程如下: ResourceVersion.enable(     "version.json?" + Math.random(),     Handler.create(this, this.onVersonLoaded));   然而发...

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

15. 有没有图集切分 [ 72%]

... laya的图集只能是.png吗? IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 (有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are 问题状态 最新...

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

16. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 72%]

...件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

17. IDE动画 添加过程出现图片资源丢失 [ 68%]

... created 图片数据应该没有问题   代码:  var ress=[{url:"res/atlas/games/cxmj/shaizi.json",type:Laya.Loader.ATLAS}];                      Laya.loader.load(ress);                     var Animation = Laya.Animation;                     var dice...

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

18. 图集资源clearRes清除之后下次再用到load时加载失败 [ 68%]

... LoadImg(url:string):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearImg(url:string):void { Laya.Loader.clearRe...

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

19. 发布之后报错,跨域问题 [ 67%]

...o load file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_nu...

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

20. 安卓上的百度小游戏,playMusic会出现多个背景音乐 [ 63%]

...的话,会有资源load不上来,报错:[error]Failed to load: res/atlas/test.atlas H5_Gamker • 2020-06-23 19:55 是不是换了适配库之后外面有些调用会对不上 157*****593 • 2020-06-23 20:16 清理一下缓存 H5_Gamker • 2020-06-24 09:33 换了新的库之后,之前的...

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