docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RestoreLastSelectedEnvironment

    RestoreLastSelectedEnvironment(string)

    Returns the name of the last selected environment that is stored in EditorPrefs.

    Declaration
    public string RestoreLastSelectedEnvironment(string defaultEnvironment)
    Parameters
    Type Name Description
    string defaultEnvironment

    The default environment name to be returned if last selected environment is not found

    Returns
    Type Description
    string

    Name of last selected environment or defaultEnvironment if last selected is not found

    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)