docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Restore

    Restore(string, bool)

    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.

    bool restoreSceneManagerSetup

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

    In This Article
    Back to top
    Copyright © 2024 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)