[HOWTO] Scene Transition Manager Order of Events

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

[HOWTO] Scene Transition Manager Order of Events

Post 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.
Post Reply