timer.allowInterationsWithinFrame

类型 布尔值
timer.*
修订 版本 2024.3703
关键词 timer, allowInteractionsWithinFrame

概述

更改计时器对象的行为,使其尽快提供事件,而不是等到下一帧执行。默认行为是 false,这意味着计时器按帧间隔触发。将其设置为 true 将使事件尽快到达。

语法

timer.allowInteratonsWithinFrame

示例

timer.allowInterationsWithinFrame = true