docs.unity.cn
    Show / Hide Table of Contents

    Class DebugUI.EnumField

    A dropdown that contains the values from an enum.

    Inheritance
    Object
    DebugUI.Widget
    DebugUI.Field<Int32>
    DebugUI.EnumField<Int32>
    DebugUI.EnumField
    DebugUI.HistoryEnumField
    Inherited Members
    DebugUI.EnumField<Int32>.enumNames
    DebugUI.EnumField<Int32>.enumValues
    DebugUI.EnumField<Int32>.AutoFillFromType(Type)
    DebugUI.Field<Int32>.getter
    DebugUI.Field<Int32>.setter
    DebugUI.Field<Int32>.onValueChanged
    DebugUI.Field<Int32>.DebugUI.IValueField.ValidateValue(Object)
    DebugUI.Field<Int32>.ValidateValue(Int32)
    DebugUI.Field<Int32>.DebugUI.IValueField.GetValue()
    DebugUI.Field<Int32>.GetValue()
    DebugUI.Field<Int32>.SetValue(Object)
    DebugUI.Widget.m_Panel
    DebugUI.Widget.panel
    DebugUI.Widget.m_Parent
    DebugUI.Widget.parent
    DebugUI.Widget.flags
    DebugUI.Widget.displayName
    DebugUI.Widget.tooltip
    DebugUI.Widget.queryPath
    DebugUI.Widget.isEditorOnly
    DebugUI.Widget.isRuntimeOnly
    DebugUI.Widget.isInactiveInEditor
    DebugUI.Widget.isHiddenCallback
    DebugUI.Widget.isHidden
    DebugUI.Widget.GetHashCode()
    DebugUI.Widget.nameAndTooltip
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public class EnumField : DebugUI.EnumField<int>, DebugUI.IValueField

    Properties

    autoEnum

    Generates enumerator values and names automatically based on the provided type.

    Declaration
    public Type autoEnum { set; }
    Property Value
    Type Description
    Type

    currentIndex

    Current enumeration value index.

    Declaration
    public int currentIndex { get; set; }
    Property Value
    Type Description
    Int32

    getIndex

    Get the enumeration value index.

    Declaration
    public Func<int> getIndex { get; set; }
    Property Value
    Type Description
    Func<Int32>

    setIndex

    Set the enumeration value index.

    Declaration
    public Action<int> setIndex { get; set; }
    Property Value
    Type Description
    Action<Int32>

    Methods

    SetValue(Int32)

    Set the value of the field.

    Declaration
    public override void SetValue(int value)
    Parameters
    Type Name Description
    Int32 value

    Input value.

    Overrides
    UnityEngine.Rendering.DebugUI.Field<System.Int32>.SetValue(System.Int32)

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    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 08 September 2023