[HOWTO] Scene Transition Manager Order of Events
Posted: Sun Oct 23, 2022 11:20 am
The Standard Scene Transition Manager runs events in this order:
When leaving the scene:
When leaving the scene:
- The Standard Scene Transition Manager immediately triggers the leave scene animation (fade out) and invokes the Leave Scene Transition > OnTransitionStart() UnityEvent. If you've specified pausing, it also immediately sets Time Scale to zero.
- After the Animation Duration, it starts loading the next scene (asynchronously).
- After the Min Transition Duration, it considers the "leave transition" finished and invokes the Leave Scene Transition > OnTransitionEnd() UnityEvent.
- It immediately triggers the enter scene animation (fade in) and invokes the Enter Scene Transition > OnTransitionStart() UnityEvent.
- After the the Animation Duration and Min Transition Duration (whichever is higher), if you've specified pausing, it immediately sets Time Scale to one. Then it invokes the Enter Scene Transition > OnTransitionEnd() UnityEvent.