Implemented Fade In To and Fade Out From Black Scene Transitions #378

Merged
mushgunAX merged 10 commits from scenetransitions into main 2023-03-01 17:55:28 +08:00
mushgunAX commented 2023-03-01 17:44:20 +08:00 (Migrated from github.com)
  • At the start of each scene, a black rectangle covering the scene will gradually fade out.
  • Pressing a button to change scene via ChangeSceneButton or going to another scene via GameManager will cause the black rectangle to gradually fade in, going to the target scene after the fade in is complete.
  • Each scene using the fade in and out has a canvas called TransitionCanvas and a UI element with the black rectangle called Transition as its child. Transition holds the script SceneFadeInOut that handles the transitions, you can modify values such as its initial alpha and how long it will take to fade in and out in seconds.
  • In other scripts, you can handle fade in / out transitions by calling functions within SceneFadeInOut.Instance.
- At the start of each scene, a black rectangle covering the scene will gradually fade out. - Pressing a button to change scene via `ChangeSceneButton` or going to another scene via `GameManager` will cause the black rectangle to gradually fade in, going to the target scene after the fade in is complete. - Each scene using the fade in and out has a canvas called `TransitionCanvas` and a UI element with the black rectangle called `Transition` as its child. `Transition` holds the script `SceneFadeInOut` that handles the transitions, you can modify values such as its initial alpha and how long it will take to fade in and out in seconds. - In other scripts, you can handle fade in / out transitions by calling functions within `SceneFadeInOut.Instance`.
XiaoQiDigipen (Migrated from github.com) reviewed 2023-03-01 17:44:20 +08:00
Sign in to join this conversation.
No description provided.