docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ExpandedState

    ExpandedState(TState, string, string)

    Constructor will create the key to store in the EditorPref the state given generic type passed. The key will be formated as such prefix:TTarget:TState:UI_State.

    Declaration
    public ExpandedState(TState defaultValue, string prefix = "CoreRP", string stateId = "UI_State")
    Parameters
    Type Name Description
    TState defaultValue

    If key did not exist, it will be created with this value for initialization.

    string prefix

    [Optional] Prefix scope of the key (Default is CoreRP)

    string stateId

    [Optional] Postfix used to differentiate between different keys (Default is UI_State)

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)