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

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

111. 图集加载后通过 图集名/图片名 显示不出图片 [ 84%]

...系。是因为你预加载是的json文件,但是没有指定类型为ATLAS。 两种解决方法: 1.给资源指定类型为ATLAS 2.在UI编辑模式下F9打开项目设置改下资源导出类型,改为atlas,这样预加载的时候直接加载.atlas文件即可,不需要再去指定资...

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

112. 1.6.2打包的图集不能使用 [ 84%]

...示longtime  。。在断点的情况下。 Laya.loader.load([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/quest...

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

113. 如何自定义动画集的图片大小? [ 84%]

...teFrames(["xxx/enemy.png"],"enemy_fly");文件路径: bin > res > atlas > xxx.atlas  操作对象: xxx.atlas "enemy1.png": { "frame": { "h": 145, "idx": 0, "w": 156, "x": 1150, "y": 292 }, "rotated": false, "sourceSize": { "h": 145, "w": 156 }, "spriteSourceSize": { "h": 145, "w": 15...

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

114. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 84%]

...create:hash',['clean'], () => { return gulp.src([ './server/static/**/*.atlas', './server/static/**/*.png', './server/static/**/*.mp3' ]) .pipe(hash({ template: '<%= name %><%= ext %>?version=<%= hash %>', })) .pipe(hash.manifest('src/assets/index.ts')) .pipe(function(){ return ...

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

115. 有没有图集切分 [ 84%]

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

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

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

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

117. IDE无法正常生成图集 [ 84%]

...片的名称都存在,但是只有这一个文件,没有.png大图和.atlas或者.json这两个文件。 2017-12-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 wudi199553 赞同来自: 你在编辑模式下...

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

118. 如何解析json文件并获取某对象值? [ 84%]

...文件并获取某对象值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代...

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

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

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

120. 资源路径问题 [ 84%]

...的图片。。发现加载图片时加载不了。 Laya.loader.load(["res/atlas/img/hall.json"],Laya.Handler.create(this, onLoaded),null,Laya.Loader.ATLAS);无法加载。。。怎么回事 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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