Method | Description | |
---|---|---|
CreateScene ( string sceneName ) : |
Create an empty new scene at runtime with the given name.
|
|
GetActiveScene ( ) : |
Gets the currently active scene.
|
|
GetSceneAt ( int index ) : |
Get the scene at index in the SceneManager's list of added scenes.
|
|
GetSceneByBuildIndex ( int buildIndex ) : |
Get a scene struct from a build index.
|
|
GetSceneByName ( string name ) : |
Searches through the scenes added to the SceneManager for a scene with the given name.
|
|
GetSceneByPath ( string scenePath ) : |
Searches all scenes added to the SceneManager for a scene that has the given asset path.
|
|
LoadScene ( int sceneBuildIndex, [ mode ) : void |
Loads the scene by its name or index in Build Settings.
|
|
LoadScene ( string sceneName, [ mode ) : void |
Loads the scene by its name or index in Build Settings.
|
|
LoadSceneAsync ( int sceneBuildIndex, [ mode ) : |
Loads the scene asynchronously in the background.
|
|
LoadSceneAsync ( string sceneName, [ mode ) : |
Loads the scene asynchronously in the background.
|
|
MergeScenes ( |
This will merge the source scene into the destinationScene. This function merges the contents of the source scene into the destination scene, and deletes the source scene. All GameObjects at the root of the source scene are moved to the root of the destination scene. NOTE: This function is destructive: The source scene will be destroyed once the merge has been completed.
|
|
MoveGameObjectToScene ( |
Move a GameObject from its current scene to a new Scene. You can only move root GameObjects from one Scene to another. This means the GameObject to move must not be a child of any other GameObject in its Scene.
|
|
SetActiveScene ( |
Set the scene to be active.
|
|
UnloadSceneAsync ( |
Destroyes all GameObjects associated with the given scene and removes the scene from the SceneManager.
|
|
UnloadSceneAsync ( int sceneBuildIndex ) : |
Destroyes all GameObjects associated with the given scene and removes the scene from the SceneManager.
|
|
UnloadSceneAsync ( string sceneName ) : |
Destroyes all GameObjects associated with the given scene and removes the scene from the SceneManager.
|
Method | Description | |
---|---|---|
GetAllScenes ( ) : UnityEngine.SceneManagement.Scene[] | ||
INTERNAL_CALL_CreateScene ( string sceneName, |
||
INTERNAL_CALL_GetActiveScene ( |
||
INTERNAL_CALL_GetSceneAt ( int index, |
||
INTERNAL_CALL_GetSceneByBuildIndex ( int buildIndex, |
||
INTERNAL_CALL_GetSceneByName ( string name, |
||
INTERNAL_CALL_GetSceneByPath ( string scenePath, |
||
INTERNAL_CALL_MergeScenes ( |
||
INTERNAL_CALL_MoveGameObjectToScene ( |
||
INTERNAL_CALL_SetActiveScene ( |
||
Internal_ActiveSceneChanged ( |
||
Internal_SceneLoaded ( |
||
Internal_SceneUnloaded ( |
||
LoadScene ( int sceneBuildIndex ) : void | ||
LoadScene ( string sceneName ) : void | ||
LoadSceneAsync ( int sceneBuildIndex ) : |
||
LoadSceneAsync ( string sceneName ) : |
||
LoadSceneAsyncNameIndexInternal ( string sceneName, int sceneBuildIndex, bool isAdditive, bool mustCompleteNextFrame ) : |
||
UnloadScene ( |
||
UnloadScene ( int sceneBuildIndex ) : bool | ||
UnloadScene ( string sceneName ) : bool | ||
UnloadSceneNameIndexInternal ( string sceneName, int sceneBuildIndex, bool immediately, bool &outSuccess ) : |
public static CreateScene ( string sceneName ) : |
||
sceneName | string | The name of the new scene. It cannot be empty or null, or same as the name of the existing scenes. |
return |
public static GetSceneAt ( int index ) : |
||
index | int | Index of the scene to get. Index must be greater than or equal to 0 and less than SceneManager.sceneCount. |
return |
public static GetSceneByBuildIndex ( int buildIndex ) : |
||
buildIndex | int | Build index as shown in the Build Settings window. |
return |
public static GetSceneByName ( string name ) : |
||
name | string | Name of scene to find. |
return |
public static GetSceneByPath ( string scenePath ) : |
||
scenePath | string | Path of the scene. Should be relative to the project folder. Like: "AssetsMyScenesMyScene.unity". |
return |
public static LoadScene ( int sceneBuildIndex, [ mode ) : void | ||
sceneBuildIndex | int | Index of the scene in the Build Settings to load. |
mode | [ | Allows you to specify whether or not to load the scene additively. /// See SceneManagement.LoadSceneMode for more information about the options. |
return | void |
public static LoadScene ( string sceneName, [ mode ) : void | ||
sceneName | string | Name or path of the scene to load. |
mode | [ | Allows you to specify whether or not to load the scene additively. /// See SceneManagement.LoadSceneMode for more information about the options. |
return | void |
public static LoadSceneAsync ( int sceneBuildIndex, [ mode ) : |
||
sceneBuildIndex | int | Index of the scene in the Build Settings to load. |
mode | [ | If LoadSceneMode.Single then all current scenes will be unloaded before loading. |
return |
public static LoadSceneAsync ( string sceneName, [ mode ) : |
||
sceneName | string | Name or path of the scene to load. |
mode | [ | If LoadSceneMode.Single then all current scenes will be unloaded before loading. |
return |
public static MergeScenes ( |
||
sourceScene | The scene that will be merged into the destination scene. | |
destinationScene | Existing scene to merge the source scene into. | |
return | void |
public static MoveGameObjectToScene ( |
||
go | GameObject to move. | |
scene | Scene to move into. | |
return | void |
public static SetActiveScene ( |
||
scene | The scene to be set. | |
return | bool |
public static UnloadSceneAsync ( |
||
scene | Scene to unload. | |
return |
public static UnloadSceneAsync ( int sceneBuildIndex ) : |
||
sceneBuildIndex | int | Index of the scene in BuildSettings. |
return |
public static UnloadSceneAsync ( string sceneName ) : |
||
sceneName | string | Name or path of the scene to unload. |
return |