Script Lifecycle

Scripts expose fixed entry points using `extern "C"` linkage. All hooks are optional, here are the hooks below and their Run Function.

Hook
When it runs

Script_OnInspector

When the object is inspected

Script_Begin

Once per object instance

Script_TickUpdate

Every frame

Script_Update

Fallback if TickUpdate is missing

Script_Spec

When Spec Mode is enabled

Script_TestEditor

When Test Mode is enabled

deltaTime is always in seconds unless declared as '0.1f' for example.

Last updated

Was this helpful?