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

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

1. Laya.loader Progress回调形同虚设 [ 100%]

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

2. laya接入fairyGUI的时候资源加载方式? [ 99%]

...加载 * @param resKey * @param otherLoadData * @param complete * @param progress * @param priority */ public load(resKey: string, otherLoadData: any, complete?: Laya.Handler, progress?: Laya.Handler, priority?: number) { if (priority) { this.priority = priority; } else { this.priority = 1; } if (pr...

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

3. Laya.loader.load 加载时长10秒,的progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 [ 98%]

Laya.loader.load 加载时长10秒,的progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 这个查了下,好像确实不能获取到加载进度。能不能用websocket或其它的方法来模拟。因为是合并后的图集,用文件个数来统计没啥卵...

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

4. Laya.loader.create中的progress回调好像不准确? [ 98%]

Laya.loader.create中的progress回调好像不准确? 如图,我加载二十多M的资源(大概二三十个文件),进度回调只有一次,是不是这个回调有问题?   附件 : --> 2018-03-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

5. 分享-js资源进度加载 [ 97%]

...加载 var ui_Socket: Socket; // 程序入口 class GameMain { //进度UI Progress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: "images/4.png", type: ...

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

6. 加载-错误处理和进度 [ 97%]

...console.log("加载结束"); } // 加载进度侦听器 function onLoading(progress) { console.log("加载进度: " + progress); } function onError(err) { console.log("加载失败: " + err); } })();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; ...

来源: Laya_示例 发布时间: 20240929

7. 加载-错误处理和进度 [ 96%]

...言、LayaAirIDE让项目开发更高效。let numLoaded = 0; class Loader_ProgressAndErrorHandle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL时自动切...

来源: Laya2.0_示例 发布时间: 20240929

8. IOs使用手动删除本地资源再次进去加载问题 [ 95%]

.../person.atlas", type : Laya.Loader.ATLAS},         {url : "loading/progress.png", type : Laya.Loader.IMAGE},         {url : "loading/progress$bar.png", type : Laya.Loader.IMAGE},     ]     Laya.loader.load(res_array, Handler.create(null, onLoaded)); }  function onLoaded() { ...

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

9. Laya中Button等组件lose skin的问题 [ 95%]

...ge多做了一件事Laya.loader.load。 __proto.load=function(url,complete,progress,type,priority,cache,group,ignoreCache){         var _$this=this;         (priority===void 0)&& (priority=1);         (cache===void 0)&& (cache=true);         (ignoreCac...

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

10. Laya.loader.create 加载进度问题 [ 90%]

...le.log("pipe", pipe); } ModelManager.prototype.onAssetsLoading = function (progress) { console.log("progress = ",progress); } 打印出来的信息是 onCreateComplete pipe undefined progress = 1 progress = 0.3333333333333333 progress = 1 为什么加载完成后又重新计算进度,而且在加...

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