Saves and manages a list of Startup Scenes, Persistent Scenes, and Loaded Scenes.
More...
|
| void | OnActiveSceneChanged (Scene oldScene, Scene newScene) |
| | Called when the SceneManager.activeSceneChanged event is raised, updates the Loaded Scenes list.
|
| void | OnSceneUnloaded (Scene scene) |
| | Called when the SceneManager.sceneUnloaded event is raised, updates the Loaded Scenes list.
|
| void | OnSceneLoaded (Scene scene, LoadSceneMode loadSceneMode) |
| | Called when the SceneManager.sceneLoaded event is raised, updates the Loaded Scenes list.
|
| AdditiveScene | AddToLoadedScenesAt (Scene scene, int index) |
| | Add a scene to the list of loaded scenes.
|
| void | RemoveFromLoadedScenes (Scene scene) |
| | Remove a scene from the list of loaded scenes.
|
| float | GetAsyncProgress (string sceneName) |
| | Returns the Async Operation's progress for a scene that is loading.
|
Saves and manages a list of Startup Scenes, Persistent Scenes, and Loaded Scenes.
A singleton of this class exists at SceneControllerSettings.Instance.
◆ AddToLoadedScenesAt()
Add a scene to the list of loaded scenes.
An AdditiveScene class will be created and added to the list.
- Parameters
-
| scene | The scene to add to the list. |
- Returns
- Creates an AdditiveScene, adds it to the list, and returns the AdditiveScene.
◆ GetAsyncProgress()
| float GetAsyncProgress |
( |
string | sceneName | ) |
|
|
private |
Returns the Async Operation's progress for a scene that is loading.
- Parameters
-
| sceneName | The name of a scene that is currently loading. |
◆ OnActiveSceneChanged()
| void OnActiveSceneChanged |
( |
Scene | oldScene, |
|
|
Scene | newScene ) |
|
private |
Called when the SceneManager.activeSceneChanged event is raised, updates the Loaded Scenes list.
- Parameters
-
| oldScene | The previous Active Scene. |
| newScene | The new Active Scene. |
◆ OnSceneLoaded()
| void OnSceneLoaded |
( |
Scene | scene, |
|
|
LoadSceneMode | loadSceneMode ) |
|
private |
Called when the SceneManager.sceneLoaded event is raised, updates the Loaded Scenes list.
- Parameters
-
| scene | The scene that was loaded. |
| loadSceneMode | Will always be LoadSceneMode.Additive. |
◆ OnSceneUnloaded()
| void OnSceneUnloaded |
( |
Scene | scene | ) |
|
|
private |
Called when the SceneManager.sceneUnloaded event is raised, updates the Loaded Scenes list.
- Parameters
-
| scene | The scene that was unloaded. |
◆ PopulateLoadedScenesList()
| void PopulateLoadedScenesList |
( |
| ) |
|
Internal function: Find all loaded scenes and add them to the list.
◆ RemoveFromLoadedScenes()
| void RemoveFromLoadedScenes |
( |
Scene | scene | ) |
|
|
private |
Remove a scene from the list of loaded scenes.
- Parameters
-
| scene | The scene the remove from the list. |
◆ loadedScenes
◆ panelSettingsInGameUI
| PanelSettings panelSettingsInGameUI |
The PanelSettings asset used to render the In-Game UI.
◆ persistentScenes
Scenes that cannot be unloaded.
◆ startScenes
◆ Instance
Static singleton of this ScriptableObject.
The documentation for this class was generated from the following file: