OnEnable
function OnEnable()Called when the active state of the Client Control that the script is attached to changes to true.
- Also called after OnInit for initally active Client Controls that have been pre-placed in the Client Control Container.
- Ignored by Module scripts.
Stage Start Lifecycle Function Call Order
- Top Level Code > OnInit - Global Script
- Top Level Code > OnInit - Client Control Hierarchy
- OnEnable - Client Control Hierarchy
- OnStart - Client Control Hierarchy
- OnEnable - Global Script
- OnStart - Global Script
- OnUpdate > OnLevelUpdate - Global Script
- OnUpdate > OnLevelUpdate - Client Control Hierarchy
- OnDestroy - Global Script (On Stage End)