Class RuntimeSceneUtils
Inheritance
RuntimeSceneUtils
Assembly: cs.temp.dll.dll
public static class RuntimeSceneUtils
Methods
Finds a scene in our build settings by name.
Declaration
public static bool FindScene(string sceneName, out Scene scene, out int sceneIndex)
Parameters
Type |
Name |
Description |
String |
sceneName |
|
Scene |
scene |
|
Int32 |
sceneIndex |
|
Returns
Finds a scene in our build settings by name.
Declaration
public static bool FindScene(string sceneName, out Scene scene, out int sceneIndex)
Parameters
Type |
Name |
Description |
String |
sceneName |
|
Scene |
scene |
|
Int32 |
sceneIndex |
|
Returns
Returns all root GameObjects in all loaded scenes.
Declaration
public static IEnumerable<GameObject> GetRootGameObjectsInLoadedScenes()
Returns
Type |
Description |
IEnumerable<GameObject> |
|
Returns all root GameObjects in all loaded scenes.
Declaration
public static IEnumerable<GameObject> GetRootGameObjectsInLoadedScenes()
Returns
Type |
Description |
IEnumerable<GameObject> |
|
Declaration
public static string GetSceneNameFromScenePath(string scenePath)
Parameters
Type |
Name |
Description |
String |
scenePath |
|
Returns
Declaration
public static string GetSceneNameFromScenePath(string scenePath)
Parameters
Type |
Name |
Description |
String |
scenePath |
|
Returns
Sets the active scene to the supplied scene. Returns true if successful.
Declaration
public static bool SetActiveScene(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns
Sets the active scene to the supplied scene. Returns true if successful.
Declaration
public static bool SetActiveScene(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns