Page 1 of 1

[HOWTO] Scene Transition Manager Order of Events

Posted: Sun Oct 23, 2022 11:20 am
by Tony Li
The Standard Scene Transition Manager runs events in this order:

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.
When the leave transition is finished *and* the new scene has been loaded:
  • 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.