docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetLastSelectedEnvironment

    SetLastSelectedEnvironment(string)

    Sets the name of the last selected environment and stores it in EditorPrefs.

    Declaration
    public void SetLastSelectedEnvironment(string environmentName)
    Parameters
    Type Name Description
    string environmentName

    Name of environment to be stored

    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)