大约有 426 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(344) Laya2.0_文档(27) Laya3.0_api(21) Laya3.0_文档(12) Laya2.0_示例(9) Laya_示例(9) laya_api(2) Laya2.0_api(2)
...么加载进度回调只调用了一次。下面有代码,求解答 Laya.loader.load( // 资源 [{url:'res/atlas/comp.json',type:Laya.Loader.ATLAS}].concat(loadArr), // 加载完成回调 Laya.Handler.create(null,function(){ var logintest = new loginTestView().ini...
来源: Laya_社区 发布时间: 20170331
...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...
来源: Laya_社区 发布时间: 20180709
...到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
...Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } fun...
来源: Laya_社区 发布时间: 20170803
...出现大小写的问题.比如本地的场景为LoadingView.ls,通过Laya.loader.load加载Loadngview.ls,本地能正常打开.打包后md5版本管理匹配版本号匹配不上.(PS 没有进行测试,只是遇到了) 3,调试代码的时候出现过,代码修改后保存,然后刷新浏览器,浏...
来源: Laya_社区 发布时间: 20250725
加载的图集会自动销毁 使用Laya.loader.load加载图集,cache参数为默认值true 加载后实例化的界面正常使用该图集显示 经过一段其它加载逻辑后该图集丢失,通过Loader.getRes获取为undefined 实例化相关界面loseskin 代码中没有任...
来源: Laya_社区 发布时间: 20180503
... 人 Spick • 2017-02-24 15:03 您好,请问一下:客户端直接用 loader 加载微信给的头像连接不可行是不是?因为我们服务器想让客户端自己保存微信的头像连接来使用 bluesea • 2017-09-23 18:27 上面的想法,在加载图片的时候,要等好久...
来源: Laya_社区 发布时间: 20170119
...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...
来源: Laya_社区 发布时间: 20180317
...00631用户 赞同来自: //加载IDE指定的场景 Laya.loader.load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){ this.astcconfig = Laya.loader.getRes("minastc.config.json"); for(var key in this.astcconfig...
来源: Laya_社区 发布时间: 20221013
... console.log("释放资源false") Laya.loader.clearRes("res/atlas/comp.json", false); Laya.loader.clearRes("res/atlas/comp.png", false); } if (e.keyCode == 66) {//B console.log("释放资源 tru...
来源: Laya_社区 发布时间: 20170317