• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 426 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)

241. 为什么加载进度回调只调用了一次。下面有代码,求解答 [ 68%]

...么加载进度回调只调用了一次。下面有代码,求解答 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

242. 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放的异常问题! [ 68%]

...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

243. layabox打包apk后加载prefab之后使用pool创建prefab找不到create函数 [ 68%]

...到create函数。问题很好重现。 IED 2.5版本 如果不使用Laya.loader.load加载后创建prefab是没有问题的。  Laya.loader.load(urlLaya.Handler.create(this, function (obj: any) {             let prefab = Laya.Pool.getItemByCreateFun('prefab_' + name, obj.c...

来源: Laya_社区 发布时间: 20200409

244. 粒子中引用的图片能合图吗 [ 68%]

...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

245. [LayaAir3]LayaAir 3.3.0-beta.4目前出现的小概率问题反馈 [ 67%]

...出现大小写的问题.比如本地的场景为LoadingView.ls,通过Laya.loader.load加载Loadngview.ls,本地能正常打开.打包后md5版本管理匹配版本号匹配不上.(PS 没有进行测试,只是遇到了) 3,调试代码的时候出现过,代码修改后保存,然后刷新浏览器,浏...

来源: Laya_社区 发布时间: 20250725

246. 加载的图集会自动销毁 [ 67%]

加载的图集会自动销毁 使用Laya.loader.load加载图集,cache参数为默认值true   加载后实例化的界面正常使用该图集显示   经过一段其它加载逻辑后该图集丢失,通过Loader.getRes获取为undefined   实例化相关界面loseskin 代码中没有任...

来源: Laya_社区 发布时间: 20180503

247. 分享:解决 QQ / 微信 获取头像跨域问题 [ 67%]

... 人 Spick • 2017-02-24 15:03 您好,请问一下:客户端直接用 loader 加载微信给的头像连接不可行是不是?因为我们服务器想让客户端自己保存微信的头像连接来使用 bluesea • 2017-09-23 18:27 上面的想法,在加载图片的时候,要等好久...

来源: Laya_社区 发布时间: 20170119

248. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 67%]

...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

249. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 67%]

...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

250. clearRes好像没作用,或许我的用法不对 [ 67%]

...         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