Scene switcher - Team-Swamp/IceBites GitHub Wiki
Overview
This is a simple class to make the switch and loading of scene simple.
Writen by - Bas
Usage
Method | Return | Description |
---|---|---|
+ LoadScene() |
void |
Load the scene that is set (sceneToLoad property) |
+ LoadSceneAsync() |
Ienumerator |
This is a coroutine to load a new scene asynchronously. This allows for the progress of scene loading to be logged and displayed. |
+ SetAndLoadScene() |
void |
Set the sceneToLoad property to a new scene, if this succeeds it will load it, otherwise it will give an error |
+SetAndLoadSceneAsync() |
void |
Set the sceneToLoad property to a new scene, if the scene exists it will load it asynchronously. Otherwise it will give an error |
+ SetSceneToLoad() |
bool |
Set the sceneToLoad property to a new scene, if it's not in the build settings you will get an error |
- SceneExists(string) |
bool |
Looks at the build settings if the given scene is in it. |
Source
You want to see how it works SceneSwitcher.cs.