docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ExpandedState<TState, TTarget>

    Used in editor drawer part to store the state of expandable areas using EditorPrefBoolFlags.

    Inheritance
    object
    ExpandedStateBase<TState>
    ExpandedState<TState, TTarget>
    ExpandedStateList<TTarget>
    Inherited Members
    ExpandedStateBase<TState>.this[TState]
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public class ExpandedState<TState, TTarget> : ExpandedStateBase<TState> where TState : struct, IConvertible
    Type Parameters
    Name Description
    TState

    An enum to use to describe the state.

    TTarget

    A type given to automatically compute the key.

    Constructors

    Name Description
    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.

    Fields

    Name Description
    m_State

    The variable which stores the state of expandable areas.

    Methods

    Name Description
    CollapseAll()

    Utility to set all states to false

    ExpandAll()

    Utility to set all states to true

    GetExpandedAreas(TState)

    Accessor to the expended state of this specific mask.

    SetExpandedAreas(TState, bool)

    Setter to the expended state.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    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)