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

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

191. 按钮交互实现 [ 78%]

...oad(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完毕这个图片集 Laya.loader.create("res/atlas/simbols.atlas",Laya.Handler.create(this,function(){ //创作你的代码 }); 2018-01-16 添加评论 免费帖 --> 分享 微博...

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

192. 微信小游戏在真机上网络动态加载资源的问题 [ 78%]

...Path = Laya.URL.basePath = ""; //加载图集 Laya.loader.load([ {url:"res/atlas/comp.atlas", type: Laya.Loader.ATLAS}, ], new Laya.Handler(this, this.onLoad)); 版本是1.7.19 2018-09-21 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

193. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 78%]

...sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的   2016-10-27 2 0 分享 微...

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

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

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

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

播放图集动画的问题 使用插件导出 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. layaAir2.7.1版本不能导出spine3.7.89的文件,求解 [ 77%]

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

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

197. 进行预加载,每次进入游戏都会重新加载一次 [ 77%]

...预加载,每次进入游戏都会重新加载一次 ar images = ["res/atlas/" + lang + "/shz_images.png","res/atlas/shz_line.png", "res/atlas/" + lang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null,...

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

198. XMLHttpRequest cannot load [ 77%]

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

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

...源 如图设置 修改加载代码 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

200. 【vivo】2d图集加载不上 [ 77%]

...上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 陆仁毅 ...

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