大约有 779 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
1.8引擎开发3D微信小游戏,目前使用Loader.create去加载lh,ls文件,现在想知道怎么使用资源缓存 目前图片资源和声音资源是自动缓存下来了,现在使用手动缓存的方式,遇到了一些问题。现在想知道,lh,ls文件手动缓存的使用流...
来源: Laya_社区 发布时间: 20190519
...到create函数。问题很好重现。 IED 2.5版本 如果不使用Laya.loader.load加载后创建prefab是没有问题的。 Laya.loader.load(url, Laya.Handler.create(this, function (obj: any) { let prefab = Laya.Pool.getItemByCreateFun('prefab_' + name, obj.c...
来源: Laya_社区 发布时间: 20200409
2.0引擎开发者使用3.0的差异汇总1、LayaAir3.0 Loader修改1.1加载一个资源1.2 加载多个资源(用数组)1.3 加载多个文件(组合)1.5 加载HTMLImage1.6 使用Options。1.7 预制体/场景的问题1.8 旧版本引擎load和create的兼容性问题1.9扩展Loader能...
来源: Laya3.0_文档 发布时间: 20251010
...es_array = [ {url : "res/atlas/loading.atlas", type : Laya.Loader.ATLAS}, {url : "res/atlas/person.atlas", type : Laya.Loader.ATLAS}, {url : "loading/progress.png", type : Laya.Loader.IMAGE}, {url : "loading/progress$bar.png", type : La...
来源: Laya_社区 发布时间: 20180730
在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"], Laya.Handler.create(this, function(){ }), Laya.Handler.create(this, function(e){ c...
来源: Laya_社区 发布时间: 20180101
...create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress() { (function loading() { Laya.loader.load([{ url...
来源: Laya_社区 发布时间: 20180710
...ion():void{ /* let resArray:Array<any>=[ {url:"eyeimf.txt",type:Laya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader...
来源: Laya_社区 发布时间: 20171228
... var imgArr = ; imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpr1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cps1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpt1.jpg",type:Loader.IMAGE}); ...
来源: Laya_社区 发布时间: 20160815
... constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onL...
来源: Laya_社区 发布时间: 20180507
...好好的有下载好的。 请问这个问题怎么解决。还有那个loader callback cost a long time怎么搞。 附件 : --> 2018-07-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自:...
来源: Laya_社区 发布时间: 20180725