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

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

191. 【已解决】 sprite无法加载图片 [ 76%]

...50k],建议开始页面单独建立文件夹打包) Laya.loader.load("res/atlas/UI.atlas", null) chatLayer = new Sprite(); chatLayer.loadImage("chat.png"); Laya.stage.addChild(chatLayer); } 2018-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

192. load 跨域请求 [ 76%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

193. SCALE_FIXED_WIDTH适配屏幕的问题 [ 76%]

...onent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/create_room.atlas", ...

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

194. 微信小游戏图集接口sendAtlasToOpenDataContext报错。 [ 76%]

微信小游戏图集接口sendAtlasToOpenDataContext报错。 更新了1.7.20.1 beta的引擎后,用这个接口把加载后的json文件路径传过去,就报这个md5的错误。 附件 : --> 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

195. 播放图集动画的问题 [ 76%]

播放图集动画的问题 使用插件导出 atlas 跟png 1 atlas里的命名,如果在10以内没问题,超过10的话,排序就乱了,排序就是 0,1,10,11,12,13..,导致不能直接使用 testUI.anim.loadAtlas("res/hand/hand_move_x.atlas").play() 因为根据文件排序来会跳...

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

196. 关于用LayaAir引擎与IDE开发HTML5游戏的js注册页面(5)课件变动ui,编译后样式混乱问题 [ 75%]

...赞同来自: 这个问题是以前加载的是.json文件 现在改成了.atlas ​你要是不想改代码 f9改图片类型把代码里加载.json的改成.atlas 两种解决办法 不过推荐还是用.atlas 2018-01-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

197. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 75%]

...。如下例所示: ```json MiniAdpter.nativefiles = [ "wxlocal", "res/atlas/houzi.atlas", "res/atlas/houzi.png", "common/tishi.png", "common/bg.png", "ui.json", "newLb/bg031.png" ]; ``` **只要是MiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录...

来源: Laya2.0_文档 发布时间: 20210715

198. layaAir2.7.1版本不能导出spine3.7.89的文件,求解 [ 75%]

...相关的链接 提交 1 个回复 kylin 赞同来自: 1) 将文件 12101.atlas.txt 重命名为 12101.atlas 后,可以导出,导出文件也可以运行(IDE版本: 2.8.0beta4) 2) 我们支持的spine格式为 同一名称的 .png .atlas .json 格式,不支持其他导出格式 3) 我们已知...

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

199. 加载UI为什么总是加载白底 [ 75%]

...色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super...

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

200. 微信开发者工具无法加载图集 [ 75%]

...开发者工具无法加载图集 发版启用文件版本管理后发现.atlas图集加载不会回调执行complete事件。 尝试1: 加载其他的普通图片资源(文件名带了hash码)能都正常。 尝试2: 把图集对应图片的文件名中的hash码删除(只处理.png图片,.atlas...

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