![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
Handles scene transitions in Unity. Provides functionality for switching scenes with optional persistence of a game object across scenes. Automatically validates and adds the target scene to build settings in the editor. More...
Public Member Functions | |
void | StartTransition (GameObject transitioningGameObject=null) |
Starts a scene transition to the specified scene. Ensures the provided game object, if any, persists across scene loads. | |
Handles scene transitions in Unity. Provides functionality for switching scenes with optional persistence of a game object across scenes. Automatically validates and adds the target scene to build settings in the editor.
Definition at line 12 of file SceneSwitcher.cs.
void StartTransition | ( | GameObject | transitioningGameObject = null | ) |
Starts a scene transition to the specified scene. Ensures the provided game object, if any, persists across scene loads.
transitioningGameObject | The game object to persist across scenes, or null if no persistence is required. |
Definition at line 24 of file SceneSwitcher.cs.