FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
SceneSwitcher Class Reference

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

Inheritance diagram for SceneSwitcher:

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.
 

Detailed Description

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.

Member Function Documentation

◆ StartTransition()

void StartTransition ( GameObject transitioningGameObject = null)

Starts a scene transition to the specified scene. Ensures the provided game object, if any, persists across scene loads.

Parameters
transitioningGameObjectThe game object to persist across scenes, or null if no persistence is required.

Definition at line 24 of file SceneSwitcher.cs.


The documentation for this class was generated from the following file: