大约有 406 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0194 秒)
...接 提交 1 个回复 cuixueying 赞同来自: 预加载资源请用Laya.Loader.load,卸载资源请用Laya.Loader.clearRes,具体示例请参考:http://layaair.ldc.layabox.com ... leton 2017-03-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20170320
...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...
来源: Laya_社区 发布时间: 20180416
...问过问题,基本没人答,结果都是我自己慢慢研究的 Laya.loader.create([{url:"land/main.lh"}],Laya.Handler.create(this,this.onCreateComplete)); 再单独写个这个 onCreateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.g...
来源: Laya_社区 发布时间: 20180807
...个序列帧动画,由于图比较大,所以没做成图解,就通过Loader.load预加载这几十张jpg,完成来在播放序列帧,这些都是好的,但是随后我通过clearRes()来释放,内存确实减少了,但是我在调用之前的loader来加载这些图却是一张都不...
来源: Laya_社区 发布时间: 20180328
...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。 代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...
来源: Laya_社区 发布时间: 20190708
...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.sta...
来源: Laya2.0_文档 发布时间: 20210715
..._XS 赞同来自: 你指的是2d的还是3d的加载,2d的加载就是用loader的load方法,3d的就是用Sprite3D的load方法 2017-12-31 0 0 分享 微博 QZONE 微信 ok10000 赞同来自: 怎么没有像egret那样介绍资源加载的教程? 2017-12-31 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20171230
...rt laya.ani.AnimationState; import laya.display.Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wuda...
来源: Laya_社区 发布时间: 20170220
...的加载看一下 rgxianzhan • 2017-12-06 10:19 使用的加载方式是loader.load Monica • 2017-12-06 19:34 @rgxianzhan:你看下是否跨域了吧 rgxianzhan • 2017-12-07 18:57 @Monica:并不会报跨域,反而会报404。但是网页中确实可以打开
来源: Laya_社区 发布时间: 20171205
...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...
来源: Laya_社区 发布时间: 20180323