Class DebugUI.EnumField | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class DebugUI.EnumField

    Enumerator field.

    Inheritance
    Object
    DebugUI.Widget
    DebugUI.Field<Int32>
    DebugUI.EnumField
    DebugUI.HistoryEnumField
    Inherited Members
    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.Field<Int32>.SetValue(Int32)
    DebugUI.Widget.m_Panel
    DebugUI.Widget.panel
    DebugUI.Widget.m_Parent
    DebugUI.Widget.parent
    DebugUI.Widget.flags
    DebugUI.Widget.displayName
    DebugUI.Widget.queryPath
    DebugUI.Widget.isEditorOnly
    DebugUI.Widget.isRuntimeOnly
    DebugUI.Widget.isInactiveInEditor
    DebugUI.Widget.GetHashCode()
    Namespace: UnityEngine.Rendering
    Syntax
    public class EnumField : DebugUI.Field<int>, DebugUI.IValueField

    Fields

    enumNames

    List of names of the enumerator entries.

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

    enumValues

    List of values of the enumerator entries.

    Declaration
    public int[] enumValues
    Field Value
    Type Description
    Int32[]

    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>
    In This Article
    • Fields
      • enumNames
      • enumValues
    • Properties
      • autoEnum
      • currentIndex
      • getIndex
      • setIndex
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023