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

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

91. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 83%]

... 肯定对这个图集做了预加载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的...

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

92. 1.6.2打包的图集不能使用 [ 83%]

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

93. (有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are [ 83%]

(有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are Failed to load file:///H:/WeChatQ1Snake/release/layaweb/v1.0.0/res/atlas/images.atlas: Cross origin requests are only supported for protocol schemes: http, ...

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

94. 图集打包失败 [ 83%]

...     newCmd: "D:/LayaAirIDE_beta/resources/app/out/vs/layaEditor/libs/TP/atlas-generator" "C:/Users/BQXH/AppData/Roaming/LayaAirIDE/packParam.json" layabuilder.max.js:5602 Waiting for pics packing layabuilder.max.js:10023 execute: "D:/LayaAirIDE_beta/resources/app/out/vs/layaEditor/libs/TP/atlas-g...

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

95. 通用发布 · LayaAir3.0文档 · LAYABOX [ 83%]

...的代码拆分到了分包script文件夹中。 三、打包图集 图集(Atlas)是游戏开发中常见的一种美术资源,通过IDE发布流程将多张图片合并成一张大图,并通过atlas格式的文件存放原始图片资源信息。 图3-1就是采用LayaAirIDE打包好的一张pn...

来源: Laya3.0_文档 发布时间: 20240926

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

...文件并获取某对象值? 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

97. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 82%]

...也可以用图集打包动画帧图片的方式,创建后缀名为“`.atlas`”的图集资源,然后赋给动画类去加载使用。 本篇将对图集动画的制作方式进行介绍,如图1所示,示例中实现了图集动画中常用的操作。 ![动图1.gif](img/1.gif)(图1) #...

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

98. TimeLineUI不存在的问题 [ 82%]

...//加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play...

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

99. 开发数据域报错wx.getFileSystemManager is not a function [ 81%]

...Game){//加载一个json图集Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域Laya.MiniAd...

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

100. 【vivo】2d图集加载不上 [ 81%]

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

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