Miliastra Wonderland Lua API

OnLevelUpdate

function OnLevelUpdate(levelDeltaTime: number)

Called once after OnUpdate every frame when level-time is not paused.

  • Updates must be enabled for the script for this lifecycle function to be called.
  • Ignored by Module scripts.

Stage Start Lifecycle Function Call Order

  1. Top Level Code > OnInit - Global Script
  2. Top Level Code > OnInit - Client Control Hierarchy
  3. OnEnable - Client Control Hierarchy
  4. OnStart - Client Control Hierarchy
  5. OnEnable - Global Script
  6. OnStart - Global Script
  7. OnUpdate > OnLevelUpdate - Global Script
  8. OnUpdate > OnLevelUpdate - Client Control Hierarchy
  9. OnDestroy - Global Script (On Stage End)