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

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

11. [LayaAir3]给box设置filters,里面的spine无效或者无法显示 [ 78%]

...效果 _update() { this._timeKeeper.update(); let state = this._state; let delta = this._timeKeeper.delta * this._playbackRate; state.update(delta); state.apply(this._skeleton); this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); if (!this._state || !this._skeleton) { return; } this._...

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

12. laya.utils.Timer_API3.0 [ 77%]

...ex Constructors constructor Properties currFrame currTimer scale Accessors delta Methods callLater clear clearAll clearCallLater destroy frameLoop frameOnce loop once pause resume runCallLater runTimer toString Constructors constructor new Timer(autoActive?: boolean): Timer Defined in laya/utils/Tim...

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

13. 如何检测鼠标滚轮方向? [ 76%]

...容相关的链接 提交 2 个回复 cuixueying 赞同来自: 可以是用delta值,如果是向上滚动输出正值,向下滚动输出负值!   2016-11-04 0 0 分享 微博 QZONE 微信 Wx122065323 赞同来自: 谢谢 2016-11-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

14. 鼠标滚轮滚动事件 [ 74%]

...标滚动 private mouseRoll(e: Laya.Event): void { let value: number = e.delta; if (value > 0) {//滚轮滑动增量大于0,向上滚动 } else {//滚轮滑动增量小于0,向下滚动 } console.log(`____________鼠标滚动___________${e.delta}______`); }   2018-04-11 2 0 分享 微博 QZONE ...

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

15. laya.utils.Timer [ 73%]

...帧数。Timer  currTimer : Number 当前帧开始的时间。Timer  delta : int[read-only] 帧之间的时间间隔,单位毫秒。 Timer  scale : Number = 1 时针缩放。TimerPublic Methods  MethodDefined By  Timer() 创建 Timer 类的一个实例。 Timer  callLater(caller:*, method...

来源: laya_api 发布时间: 20170929

16. 切换后台时,引擎如何判断是否停止定时器? [ 73%]

...   }      private onFrameLoop():void{         console.log("delta:",Laya.timer.delta);     }      private onFocus(): void {         console.log("onFocus:");     }      private onBlur(): void {         console.log("onBlur:");     } }这样子,浏...

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

17. laya.utils.Timer [ 73%]

...帧数。Timer  currTimer : Number 当前帧开始的时间。Timer  delta : int[read-only] 两帧之间的时间间隔,单位毫秒。Timer  scale : Number = 1 时针缩放。TimerPublic Methods  MethodDefined By  Timer(autoActive:Boolean = true) 创建 Timer 类的一个实例。 Timer ...

来源: Laya2.0_api 发布时间: 20190513

18. [LayaAir3]laya3.3.1 帧率不稳,最新测试包。可以看打印计数器跳帧数 [ 70%]

...三种模式 1.laya3.3  2.performance 3.cc2.14   实际测试下来,laya delta 不太稳定,帧率显示虽然基本上是59/60 但是其实因为 1秒统计1次,偏差大。导致帧率高但是总感觉跳帧卡顿, 希望3.3.2 修复下,提高性能和稳定性。 让laya 在普通H5 ...

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

19. laya绘制图形进行缩放的时候有问题 [ 63%]

...缩放了sp 边框也跟着变小 a1748004424 • 2018-02-11 16:41 if (e.delta > 0 && this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 &am...

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

20. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...旋转动画 this.lightComp.lightRotation += this.rotateSpeed * Laya.timer.delta / 1000; // 实现灯光缩放动画 this.scaleTime += Laya.timer.delta / 1000 * this.scaleSpeed; const scale = 1 + Math.sin(this.scaleTime) * 0.5; // 增加缩放变化幅度 this.lightComp.lightScale.setValue(scale, sc...

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