docs.unity.cn
    Show / Hide Table of Contents

    Method Restore

    Restore(String, Boolean)

    Restore the state of the EditorSceneManager.

    Declaration
    public static void Restore(string path = "", 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 © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use