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

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

341. 图集打包多个小动画,能像createFrames一样命名小动画吗 [ 68%]

...-27 15:47 我是用ide打包的动画,打包出来只有json , png , atlas三个文件 abc0201213 • 2017-07-28 10:29 @cuixueying:我是用ide打包的动画,打包出来只有json , png , atlas三个文件 cuixueying • 2017-07-28 10:49 可以打图集,你预加载图集,从图集...

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

342. 仅在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

343. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 68%]

...e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` ​ 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worke...

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

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

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

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

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

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

347. 关于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

348. 设置遮罩(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

349. 怎么在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

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