docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SceneManagement

    An interface for manipulating Scenes in the context of TimelineSequence.

    Inheritance
    object
    SceneManagement
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 path is already loaded in the Hierarchy. False otherwise.

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)