中文
Appearance
Component.OnUpdate()
Component
如果注册此方法,那么在每一帧的开始时都会执行此方法。
void
OnUpdate(): void { // 每帧都会执行 Debug.log("OnUpdate"); }