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

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

1. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...his.Image.visible = false; } } 5. 清理定时器 Laya.timer.clear:清理指定的定时器。定义如下: /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 */ clear(caller: any, method: Function): void { var handler: TimerHandler = this._getHa...

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

2. Steam扩展实例 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...件脚本,当点击按钮时,完成初始化,再点击按钮,设置指定成就。 import { extendLib } from "./extlib"; const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({type: Laya.Button}) public initBtn: Laya.Button; @property({type: ...

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

3. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...过Stat.FPS查看当前频。 Laya.timer.loop执行频率依赖于参数指定时间。 Laya.timer.frameLoop(1, this, this.animateFrameRateBased); Laya.stage.on("click", this, this.dispose); dispose() { Laya.timer.clear(this, this.animateFrameRateBased); } 当一个对象的生命周期结束时...

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

4. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...Float32 等不同类型的数据,而 TypedArray 只能使用其构造时指定的单一数据类型。 在读写多字节数据时,DataView 允许开发者指定字节序,即数据在内存中的存储顺序。可以选择大端字节序或小端字节序,通过方法的布尔参数来控制...

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