大约有 270 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0092 秒)
Laya_社区(197) Laya2.0_文档(22) Laya3.0_文档(15) Laya3.0_api(12) Laya2.0_api(10) laya_api(6) Laya_示例(4) Laya2.0_示例(4)
... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...
来源: Laya2.0_文档 发布时间: 20210715
...: void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.pr...
来源: Laya3.0_文档 发布时间: 20251010
... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...
来源: Laya2.0_文档 发布时间: 20210715
... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...
来源: Laya2.0_文档 发布时间: 20210715
...500毫秒 Returns void Static load load(url: string, complete?: Handler, progress?: Handler): Promise<Scene> Defined in laya/display/Scene.ts:372 加载场景及场景使用到的资源 Parameters url: string 场景地址 Default value complete: Handler = null 加载完成回调,返回场景...
来源: Laya3.0_api 发布时间: 20231115
...500毫秒 Returns void Static load load(url: string, complete?: Handler, progress?: Handler): Promise<Scene> Inherited from Scene.load Defined in laya/display/Scene.ts:372 加载场景及场景使用到的资源 Parameters url: string 场景地址 Default value complete: Handler = null 加载...
来源: Laya3.0_api 发布时间: 20231115
...= <Area>{ w: -1, h: -1 }; /** 血条 */ private _blood_chart: Laya.ProgressBar; // toset: private _blood_area: Area = new AreaEntity( 100, 20 ); public _blood_value: number; /** 魔鬼 */ private _demon_ani: Laya.Animation; // toset: private _demon_area: Area = new AreaEntity( 100, 100); ...
来源: Laya_社区 发布时间: 20180515
...fig.GameHeight - this.txt.height) * 0.5; this.addChild(this.txt); } _proto.progress = function(value){ this.txt.text = "Loading " + parseInt(value * 100) + "%"; } })();[/i][i](function () { /** * 游戏介绍 */ function GameInfo(){ this.bg = null; this.txt = null; GameInfo.__super.call(this); this....
来源: Laya_社区 发布时间: 20160803
...鼠标事件。 EventDispatcher load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:...
来源: Laya2.0_api 发布时间: 20190513
...lBack != null && callBack.runWith([1, data]); } }); downloadTask.onProgressUpdate(function (data) { callBack != null && callBack.runWith([2, data.progress]); }); } static readFile(filePath, encoding = "utf8", callBack = null, readyUrl = "", isSaveFile = false, fil...
来源: Laya_社区 发布时间: 20200103