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

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

1. 分享-js资源进度加载 [ 100%]

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

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 Progress回调形同虚设 [ 98%]

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

4. 加载-错误处理和进度 [ 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_示例 发布时间: 20240930

5. Laya.loader.create 加载进度问题 [ 96%]

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

6. 加载-错误处理和进度 [ 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_示例 发布时间: 20240930

7. laya.net.LoadTask_API3.0 [ 96%]

...x Constructors constructor Properties ext loader obsoluteInst onComplete onProgress options progress type url uuid Methods reset Constructors constructor new LoadTask(): LoadTask Defined in laya/net/Loader.ts:1068 Returns LoadTask Properties ext ext: string Implementation of ILoadTask.ext Defined in...

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

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

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

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

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.load 加载时长10秒,的progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 [ 95%]

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

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