Essential Systems / Scene Manager
Scene Manager
Enjoying Essential Systems?Leave a reviewLearn to use the included scene manager.
Setup
Add the SceneManager script to any object in the scene. It will detach from its parent and persist across scenes automatically. This means that you can add it in the starting scene, then it will persist through all the other scenes.
There must be exactly one
SceneManagerin the scene at all times.
API
SceneManager.LoadScene("GameScene"); // load by name
SceneManager.LoadScene(0); // load by build index
SceneManager.GetActiveScene(); // returns the active scene
SceneManager.GetScenes(); // returns all scenes in Build Settings
Last updated

