docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DebugUI.EnumField<T>

    Generic DebugUI.EnumField that stores enumNames and enumValues

    Inheritance
    object
    DebugUI.Widget
    DebugUI.Field<T>
    DebugUI.EnumField<T>
    DebugUI.BitField
    DebugUI.EnumField
    DebugUI.MaskField
    Implements
    DebugUI.IValueField
    Inherited Members
    DebugUI.Field<T>.getter
    DebugUI.Field<T>.setter
    DebugUI.Field<T>.onValueChanged
    DebugUI.Field<T>.ValidateValue(T)
    DebugUI.Field<T>.GetValue()
    DebugUI.Field<T>.SetValue(object)
    DebugUI.Field<T>.SetValue(T)
    DebugUI.Widget.order
    DebugUI.Widget.m_Panel
    DebugUI.Widget.panel
    DebugUI.Widget.m_RequiresLegacyStateHandling
    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.nameAndTooltip
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public abstract class DebugUI.EnumField<T> : DebugUI.Field<T>, DebugUI.IValueField
    Type Parameters
    Name Description
    T

    The inner type of the field

    Fields

    enumNames

    List of names of the enumerator entries.

    Declaration
    public GUIContent[] enumNames
    Field Value
    Type Description
    GUIContent[]

    Properties

    enumValues

    List of values of the enumerator entries.

    Declaration
    public int[] enumValues { get; set; }
    Property Value
    Type Description
    int[]

    Methods

    AutoFillFromType(Type, bool)

    Automatically fills the enum names with a given Type

    Declaration
    protected void AutoFillFromType(Type enumType, bool removeZeroElement = false)
    Parameters
    Type Name Description
    Type enumType

    The enum type

    bool removeZeroElement

    Whether the item with the value zero should be removed from enumNames and enumValues

    Create()

    Creates the VisualElement for the widget that will be added to the panel UI.

    Declaration
    protected override VisualElement Create()
    Returns
    Type Description
    VisualElement

    The widget's VisualElement

    Overrides
    DebugUI.Widget.Create()

    Implements

    DebugUI.IValueField

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)