docs.unity.cn
    Show / Hide Table of Contents

    Class AdditionalPropertiesStateList<TTarget>

    Used in editor drawer part to store the state of additional properties for a list of elements.

    Inheritance
    Object
    AdditionalPropertiesStateBase<Int32>
    AdditionalPropertiesState<Int32, TTarget>
    AdditionalPropertiesStateList<TTarget>
    Inherited Members
    AdditionalPropertiesState<Int32, TTarget>.m_State
    AdditionalPropertiesState<Int32, TTarget>.GetAdditionalPropertiesState(Int32)
    AdditionalPropertiesState<Int32, TTarget>.SetAdditionalPropertiesStateValue(Int32, Boolean)
    AdditionalPropertiesState<Int32, TTarget>.ShowAll()
    AdditionalPropertiesState<Int32, TTarget>.HideAll()
    AdditionalPropertiesStateBase<Int32>.Item[Int32]
    AdditionalPropertiesStateBase<Int32>.GetAdditionalPropertiesState(Int32)
    AdditionalPropertiesStateBase<Int32>.SetAdditionalPropertiesState(Int32, Boolean)
    AdditionalPropertiesStateBase<Int32>.SetAdditionalPropertiesStateValue(Int32, Boolean)
    AdditionalPropertiesStateBase<Int32>.ShowAll()
    AdditionalPropertiesStateBase<Int32>.HideAll()
    AdditionalPropertiesStateBase<Int32>.ResetAnimation(Int32)
    AdditionalPropertiesStateBase<Int32>.RegisterEditor(Editor)
    AdditionalPropertiesStateBase<Int32>.UnregisterEditor(Editor)
    Namespace: UnityEditor.Rendering
    Syntax
    public class AdditionalPropertiesStateList<TTarget> : AdditionalPropertiesState<int, TTarget>
    Type Parameters
    Name Description
    TTarget

    A type given to automatically compute the key.

    Constructors

    AdditionalPropertiesStateList(String)

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

    Declaration
    public AdditionalPropertiesStateList(string prefix = "CoreRP")
    Parameters
    Type Name Description
    String prefix

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

    Methods

    RemoveFlagAtIndex(Int32)

    Removes a flag at a given index which causes the following flags' index to decrease by one.

    Declaration
    public void RemoveFlagAtIndex(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the flag to be removed.

    SwapFlags(Int32, Int32)

    Swap flag between src index and dst index.

    Declaration
    public void SwapFlags(int srcIndex, int dstIndex)
    Parameters
    Type Name Description
    Int32 srcIndex

    src index to swap.

    Int32 dstIndex

    dst index to swap.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 07 July 2023