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

大约有 93 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0035 秒)

51. 用Laya.loader.load加载js文件的问题 [ 71%]

...度信息,为什么在native上,Android和iOS都没有进度信息?progress一直没有回调,只在100%时有一次 2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这...

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

52. Laya.loader加载分组有什么用?如果同时加载两组资源,怎么区分是哪组? [ 71%]

... 我如果不设置分组,怎么区分是哪个文件加载完了? getProgress()方法怎么知道是哪几个文件的progress? 2019-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 zengjoeng 赞同来...

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

53. laya.net.LoaderManager_API3.0 [ 71%]

...e create(url: string | (string | createItem)[], complete?: Handler | null, progress?: Handler | null, type?: string | null, constructParams?: any[] | null, propertyParams?: any, priority?: number, cache?: boolean): void Defined in laya/net/LoaderManager.ts:97 根据clas类型创建一个未初始化...

来源: Laya3.0_api 发布时间: 20231102

54. Oppo加载.ls资源错误 [ 70%]

...cene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:45.923 30921-30972/? E/jswrapper: [ERROR] Failed to invoke _runtime_require, location: /home/game/jenkins/workspace/SafeBuild/XG...

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

55. Laya.loader.create()真机不能加载3D资源,加载图片和音频可以,打开调试也没问题 [ 68%]

...cen/Conventional/newScen.ls",         ];          //设置progress Handler的第4个参数为true,根据加载文件个数获取加载进度         Laya.loader.create(res,null,Laya.Handler.create(this,this.onProgress,null,false)); 2020-11-30 添加评论 免费帖 --> ...

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

56. laya接入vivo平台加载资源卡住66% [ 68%]

...nti if(Browser.onVVMiniGame) {// _http = new HttpRequest(); _http.on(Event.PROGRESS, this, onProgress); _http.on(Event.ERROR, this, onError); _http.on(Event.COMPLETE, this, onLoaded); ////////////////////////////////////////////////////// } else { //...... } 已解决。 2020-11-23 0 0 分享 微博...

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

57. 一个关于laya.display.scene不成熟的小建议 [ 68%]

...把scene里的静态方法: static load(url: string, complete?: Handler, progress?: Handler): void; static open(url: string, closeOther?: boolean, param?: any, complete?: Handler, progress?: Handler): void; static close(url: string, name?: string): boolean; static closeAll(): void; static setLoadi...

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

58. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 67%]

... { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个数组。。但是场景文件不存在,失败参数都是空的。。跟文档描述不符合 附件 : --> 2019-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

59. 分享一个Shader版的CoolDown实现 [ 67%]

... alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); --------------------...

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

60. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 67%]

...`Laya.Handler.create(this,onLoading)`返回的回调方法,是要处理progress加载进度事件,由于回调执行一次之后就被对象池回收了,所以,progress加载进度事件只触发了一次就结束了,但实际上资源并未加载完成,还处于加载中,所以这样...

来源: Laya2.0_文档 发布时间: 20210715