docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class AdditionalPropertiesState<TState, TTarget>

    Used in editor drawer part to store the state of additional properties areas.

    Inheritance
    object
    AdditionalPropertiesState<TState, TTarget>
    Inherited Members
    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 AdditionalPropertiesState<TState, TTarget> 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
    AdditionalPropertiesState(TState, string)

    Constructor will create the key to store in the EditorPref the state given generic type passed.

    Properties

    Name Description
    this[TState]

    Get or set the state given the mask.

    Methods

    Name Description
    GetAdditionalPropertiesState(TState)

    Accessor to the expended state of this specific mask.

    HideAll()

    Utility to set all states to false

    RegisterEditor(Editor)

    Register an editor for this set of additional properties.

    SetAdditionalPropertiesState(TState, bool)

    Setter to the expended state.

    ShowAll()

    Utility to set all states to true

    UnregisterEditor(Editor)

    Unregister an editor for this set of additional properties.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 02 October 2023