Class SceneManagement
An interface for manipulating Scenes in the context of TimelineSequence.
Inherited Members
Namespace: UnityEditor.Sequences
Assembly: Unity.Sequences.Editor.dll
Syntax
public class SceneManagement
Methods
AddNewScene(TimelineSequence)
Creates a new empty Scene and links it with a SceneActivationTrack in the given Sequence.
Declaration
public static bool AddNewScene(TimelineSequence sequence)
Parameters
| Type | Name | Description |
|---|---|---|
| TimelineSequence | sequence | The Sequence you want the new Scene to belong to. |
Returns
| Type | Description |
|---|---|
| bool | True if the operation has succeeded. False if the Editor could not save the new Scene in the project. |
CloseScene(string)
Closes the Scene located at the specified path.
Declaration
public static void CloseScene(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Path to the Scene, relative to the project folder. |
IsLoaded(string)
Indicates if the Scene located at the specified path is already loaded or not in the Hierarchy.
Declaration
public static bool IsLoaded(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Path to the Scene, relative to the project folder. |
Returns
| Type | Description |
|---|---|
| bool | True if the Scene located at |
OpenAllScenes(TimelineSequence, bool)
Opens all Scenes referenced through a SceneActivationTrack in the specified TimelineSequence.
Declaration
public static void OpenAllScenes(TimelineSequence sequence, bool deactivate = false)
Parameters
| Type | Name | Description |
|---|---|---|
| TimelineSequence | sequence | The Sequence you want to open all related activatable Scenes from. |
| bool | deactivate | Set to true to disable the root GameObjects of the loaded Scenes. Default value: false. |
OpenScene(string, bool)
Opens the Scene located at the specified path in Additive.
Declaration
public static void OpenScene(string path, bool deactivate = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Path to the Scene, relative to the project folder. |
| bool | deactivate | Set to true to disable the root GameObjects of the loaded Scenes. Default value: false. |