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

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

1. Laya.loader.load("", Laya.Handler.create(this, this.console)); [ 100%]

Laya.loader.load("", Laya.Handler.create(this, this.console)); 为什么会打印两次 附件 : --> 2018-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 加载两次 2019-05-11 0 0 ...

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

2. 加载不同域名下的单个图片 会重复加载两次,导致无法显示 [ 95%]

...A域名图片获取失败,导致图片不显示,什么原因   Laya.loader.load 方式预加载 附件 : --> 2017-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 方便给个例...

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

3. Laya.loader.create和Laya.loader.load能混合用? [ 92%]

Laya.loader.create和Laya.loader.load能混合用? 如果3d是用Laya.loader.create 2d用的是Laya.loader.load那么问题来了 我有点懵逼,3d里面不也有2d资源么。那我究竟是用create还是load。如果分开。。oncomplete时候不得再做一层判断? 2019-01-29 添加...

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

4. Laya.loader.create 进度回调函数执行两次!!! [ 92%]

Laya.loader.create 进度回调函数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出...

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

5. Laya.loader.create 进度回调函数执行两次 [ 91%]

Laya.loader.create 进度回调函数执行两次 Laya.loader.create(["Main/SMain.ls","Role/Role.lh"],Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%");...

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

6. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 91%]

Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.fl...

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

7. 调用Laya.loader.load()方法加载资源,怎么获取所加载的资源大小. [ 87%]

调用Laya.loader.load()方法加载资源,怎么获取所加载的资源大小. 我想获取到加载资源的网速,现在思路是 通过new HttpRequest().send()方法完成事件的参数arraybuffer来获得所加载资源的大小,然后根据加载时间计算出网速。但是这样会...

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

8. 3d模型预加载后二次调用报错 [ 86%]

3d模型预加载后二次调用报错 使用Laya.loader.create 预加载,第一次用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 可以创建,第二次再调用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 创建就返回undefined了,help~ 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE ...

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

9. 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? [ 86%]

使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗? 预加载是预加载的什么...

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

10. Laya.loader Progress回调形同虚设 [ 84%]

Laya.loader Progress回调形同虚设 private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load([ "res/1.png", "res/2.png", "res/3.png", "res/4.png", "res/5.png", "res/6.png", "res/7.png" ], Handler.create(this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.lo...

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