API ReferenceScriptcomponentOnupdateScriptComponent.onUpdate() method Invoked each frame when the game is running. Signature: onUpdate(dt: number): void; Parameters Parameter Type Description dt number The time in seconds since the last frame **Returns:** void