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

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

351. 仅在Android微信小游戏下图片错乱 [ 68%]

...AssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui/share@atlas0.png"))//此处会...

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

352. [LayaAirIDE3]【工具分享】免费图集打包工具, 替代 TexturePacker [ 68%]

...  2025-08-18 0 1 分享 微博 QZONE 微信 photon 赞同来自: 出现了atlas多个图集文件,laya可以做到多张图一个atlas图集文件。 2025-08-19 0 2 分享 微博 QZONE 微信 153*****169 赞同来自: 今天更新新版本,主要变更: 1. 适配手机端,现在手机端浏...

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

353. 是否启用版本管理,启用后,会重命名变化的文件(Laya如何判别变化?) [ 68%]

...没有删除资源的情况下-------------------------- 2.复合文件(atlas,swf等),如果atlas里的内容和之前的atlas内容不符 3.versin.json被删除了,虽然其他文件都在,但是也会全部重新生成新的文件名。   是这样吗?   至于以后生成新的文...

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

354. Animation如何获取图集单帧实际宽高 [ 68%]

...机里是不一样的,咋回事? 手机: 网页: 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加...

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

355. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 68%]

...ce(); })(); function loadResource(){ var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangf...

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

356. 关于layaair中类的大小写规则有没有基本的说明文档 [ 68%]

...小写规则有没有基本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler   2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...

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

357. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 68%]

...效果的UI页面,会在`src/ui`目录下生成UI类,以及`bin/h5/res/atlas`目录下的图集文件,如图9所示。 ![图9](img/9.jpg) (图9) ### 4.2 使用IDE生成的类与图集,实现遮罩效果   创建一个入口类`Main.as`,编码如下: ```java package { import laya....

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

358. 怎么在api中找到 Laya.loader.load [ 68%]

怎么在api中找到 Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.c...

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

359. Dialog.show 的 showEffect参数在微信真机上的问题 [ 68%]

...信小游戏上显示一个Dialog 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但...

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

360. 提示资源找不到但是也能显示! [ 68%]

...是也能显示! blackMan.json 是一个小黑人  ani not found: res/atlas/default/blackMan.json     public static readonly BLACK_MAN = "res/atlas/default/blackMan.json";    this.aniTemp.loadAtlas(ResourcesManager.BLACK_MAN, null, ResourcesManager.BLACK_MAN);   json 文件是   {"frames":{...

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