Class SceneManagerState | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class SceneManagerState

    Serializable object that can be used to save and restore the state of the editor scene manager.

    Inheritance
    Object
    SceneManagerState
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets.Build
    Syntax
    [Serializable]
    public class SceneManagerState

    Methods

    AddScenesForPlayMode(List<EditorBuildSettingsScene>)

    Adds a set of scenes to the scene list for use in editor play mode.

    Declaration
    public static void AddScenesForPlayMode(List<EditorBuildSettingsScene> playModeScenes)
    Parameters
    Type Name Description
    List<EditorBuildSettingsScene> playModeScenes

    The scenes to add to the editor scenes list.

    Record(String)

    Record the state of the EditorSceneManager and save to a JSON file.

    Declaration
    public static void Record(string path = "Library/com.unity.addressables/SceneManagerState.json")
    Parameters
    Type Name Description
    String path

    The path to save the recorded state.

    Restore(String, Boolean)

    Restore the state of the EditorSceneManager.

    Declaration
    public static void Restore(string path = "Library/com.unity.addressables/SceneManagerState.json", bool restoreSceneManagerSetup = false)
    Parameters
    Type Name Description
    String path

    The path to load the state data from. This file is generated by calling SceneManagerState.Record.

    Boolean restoreSceneManagerSetup

    If true, the recorded active scenes are restored. EditorBuildSettings.scenes are always restored.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023