Function AstarPath.OnEnable

OnEnable ()

Called after this component is enabled.

Private
void OnEnable ()

Called after this component is enabled.

Unless the component has already been activated in Awake, this method should:

  • Ensure the singleton holds (setting active to this).

  • Make sure all subsystems that were disabled in OnDisable are again enabled.

    • This includes starting pathfinding threads.