大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)
Laya_社区(2466) Laya2.0_文档(107) Laya3.0_文档(62) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
... arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")] Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) Laya.loader.clearUnLoaded() Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) } function onComplete(){ trace("complete") } Resources...
来源: Laya_社区 发布时间: 20190630
...512,不管是宽还是高,都可以在销毁使用对象后,在通过Loader.clearRes来及时释放你的图片内存。而小于512的资源默认会被存到我们的动态图集里,这些资源的内存占用你手动清理不掉,在动态图集资源存满了,我们会把不用的资...
来源: Laya_社区 发布时间: 20171107
...th (AA.max.js:674) at ResInfo.__proto.event (AA.max.js:453) at LoaderManager.__proto._endLoad (AA.max.js:9492) at Loader.onLoaded (AA.max.js:9469) at EventHandler.__proto.runWith (AA.max.js:674) at Loader.__proto.event (AA.max.js:453) 附件 : --> testA_B.zip 2017-07-25...
来源: Laya_社区 发布时间: 20170725
...法,AS/TS思路一样,请根据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (va...
来源: Laya_社区 发布时间: 20170513
...错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMa...
来源: Laya_社区 发布时间: 20180810
...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20170417
...内容相关的链接 提交 1 个回复 熊猫大侠 赞同来自: Laya.Loader.getRes(Url) 2020-06-11 0 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 189*****909 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了...
来源: Laya_社区 发布时间: 20200609
...缓存后第一次加载能播放,此后再加载不播放的问题 Laya.loader.create缓存加载的 2017-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 gy760736077 赞同来自: 还有,即使缓存了....
来源: Laya_社区 发布时间: 20170614
..."",callBack:Handler = null,encoding:String = "ascii"):void 和原有loader加载方式产生分裂,导致游戏加载代码不统一,并且不支持传入数组批量下载,当要加载多个文件并缓存的时候会麻烦很多 建议增加设置默认缓存类型的接口,可...
来源: Laya_社区 发布时间: 20180312
...动画进行单独处理?还是不允许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.S...
来源: Laya_社区 发布时间: 20201022