大约有 717 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)
Laya_社区(623) Laya2.0_文档(49) Laya3.0_文档(25) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...-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
...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
...e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worke...
来源: Laya2.0_文档 发布时间: 20210715
...机里是不一样的,咋回事? 手机: 网页: 代码: 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
...没有删除资源的情况下-------------------------- 2.复合文件(atlas,swf等),如果atlas里的内容和之前的atlas内容不符 3.versin.json被删除了,虽然其他文件都在,但是也会全部重新生成新的文件名。 是这样吗? 至于以后生成新的文...
来源: Laya_社区 发布时间: 20180628
...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
...小写规则有没有基本的说明文档 比如: 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
...效果的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
怎么在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
...信小游戏上显示一个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