Skip to content

格式

typescript
Component.OnForceUpdate()

所属类: Component

描述

如果注册此方法,会在固定的时间间隔内被调用,而不是每一帧都被调用。

参数

参数名类型描述

返回值

类型描述
void

代码示例

typescript
OnForceUpdate(): void {
        
    // 在固定的时间间隔内被调用
    Debug.log("OnForceUpdate");
}