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

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

191. Animation模板动画的移除 [ 78%]

...ing 赞同来自:   项目示例代码如下 ani=new Animation(); ani.loadAtlas("res/atlas/atlasLight.json",null,"play"); ani.play(); Laya.stage.addChild(ani);  有的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有缓...

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

192. LayaAir IDE 2.0.0 - TS F12发布UI问题 [ 78%]

...编辑模式里场景模式为 内嵌模式,资源发布目录为 bin/res/atlas F12发布UI后,如下图所示出现弹窗,过一会弹窗自动关闭,没有任何提示,没有报错也没有提示发布成功 切换到代码模式后看到在ui文件夹下生成了一个layaMaxUI.ts文件...

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

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

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

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

194. 微信小游戏在真机上网络动态加载资源的问题 [ 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

195. 请问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

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

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

197. 播放图集动画的问题 [ 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

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

199. 进行预加载,每次进入游戏都会重新加载一次 [ 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

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