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

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

1. 计时器-间隔循环 [ 100%]

...etup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于频旋转", this.rotateTimeBasedText.x, this.rotateTimeBasedText.y + vGap); Laya.timer.loop(200, ...

来源: Laya2.0_示例 发布时间: 20240930

2. 计时器-延迟执行 [ 87%]

....off(Event.CLICK, this, this.onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, this.onComplete1); } onDecreaseAlpha2(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button2.off(Event.CLICK, this, this.onDecreaseAlpha2); //定时执行一次(基于率...

来源: Laya2.0_示例 发布时间: 20240930