実行時のシーン管理
loadedSceneCount | 読み込まれているシーン数 |
sceneCount | The current number of Scenes. |
sceneCountInBuildSettings | Number of Scenes in Build Settings. |
CreateScene | Create an empty new Scene at runtime with the given name. |
GetActiveScene | Gets the currently active Scene. |
GetSceneAt | Get the Scene at index in the SceneManager's list of loaded Scenes. |
GetSceneByBuildIndex | Get a Scene struct from a build index. |
GetSceneByName | Searches through the Scenes loaded for a Scene with the given name. |
GetSceneByPath | Searches all Scenes loaded for a Scene that has the given asset path. |
LoadScene | Loads the Scene by its name or index in Build Settings. |
LoadSceneAsync | Loads the Scene asynchronously in the background. |
MergeScenes | This will merge the source Scene into the destinationScene. |
MoveGameObjectToScene | Move a GameObject from its current Scene to a new Scene. |
SetActiveScene | Set the Scene to be active. |
UnloadSceneAsync | Destroys all GameObjects associated with the given Scene and removes the Scene from the SceneManager. |
activeSceneChanged | Subscribe to this event to get notified when the active Scene has changed. |
sceneLoaded | Add a delegate to this to get notifications when a Scene has loaded. |
sceneUnloaded | Add a delegate to this to get notifications when a Scene has unloaded. |