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

大约有 270 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)

31. 加载-错误处理和进度 [ 90%]

...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_示例 发布时间: 20251130

32. 进度条滚动无效【已解决】 [ 90%]

...置 Laya.timer.frameLoop(1,this,onLoop); private function onLoop():void { progress++; //最高100%进度 if(progress>=100) { progress=100; this.tips.text="游戏加载完毕,即将进入游戏..." this.panel.visible=false; this.gobtn.visible=true; }else { this.pro.value=progress/100; this.tips....

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

33. 加载-错误处理和进度 [ 89%]

...言、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_示例 发布时间: 20251130

34. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 89%]

...1000) % this.dayDuration; const totalMinutes = Math.floor((this.getAdjustedProgress()) * 24 * 60); const hours = Math.floor(totalMinutes / 60); const minutes = totalMinutes % 60; const timeString = `${this.padNumber(hours)}:${this.padNumber(minutes)}`; // 更新文本显示 this.displayText.text = `...

来源: Laya3.0_文档 发布时间: 20251010

35. laya.net.LoadTask_API3.0 [ 89%]

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

36. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 88%]

...entage(100);                 processTimer.setType(ProcessTimer.PROGRESS_TIMER_TYPE_RECT);                 processTimer.setPosition(0,0);                 processTimer.setReverseDirection(true)                 var percent:Number = 0;            ...

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

37. js进度,进度,js场景进度效果 [ 87%]

...进度 p.onLoading = function(num) { //先添加进度组件UI if (!this.Progress) { this.Progress = new Progress(); this.i = 0; } this.i++; this.timeFn(this.i, num); }; p.timeFn = function(i, num) { //用定时延迟去加载进度 - 由于进度太快无法看到一个虚假的效果 Laya.timer.on...

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

38. 预制体模块 · LayaAir3文档 · LAYABOX [ 85%]

...ad( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png"] ).then(() => { let resArr: Array<any> = [ { url: "resources/prefab/uiDemo/useUI/ChangeTexture.lh", type: Laya.Loader.HIERARCHY }, { url: "resources/prefab/uiDemo/useUI/...

来源: Laya3.0_文档 发布时间: 20241014

39. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 85%]

...ad( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png"] ).then(() => { let resArr: Array<any> = [ { url: "resources/prefab/uiDemo/useUI/ChangeTexture.lh", type: Laya.Loader.HIERARCHY }, { url: "resources/prefab/uiDemo/useUI/...

来源: Laya3.0_文档 发布时间: 20251105

40. 环形进度条 [ 83%]

...on/310 2017-02-06 0 0 分享 微博 QZONE 微信 jacksing888 赞同来自: progress是不是只支持横向或者众向 不直接扇形进度条 画一个圆这样的?类似于 cocos2djs的 progressTimer 2017-02-06 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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