docs.unity3d.com
    Show / Hide Table of Contents

    Class DebugUI.Field<T>

    Generic field - will be serialized in the editor if it's not read-only

    Inheritance
    Object
    DebugUI.Widget
    DebugUI.Field<T>
    DebugUI.BitField
    DebugUI.BoolField
    DebugUI.ColorField
    DebugUI.EnumField
    DebugUI.FloatField
    DebugUI.IntField
    DebugUI.UIntField
    DebugUI.Vector2Field
    DebugUI.Vector3Field
    DebugUI.Vector4Field
    Inherited Members
    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
    Namespace: UnityEngine.Rendering
    Syntax
    public abstract class Field<T> : DebugUI.Widget, DebugUI.IValueField
    Type Parameters
    Name Description
    T

    Fields

    onValueChanged

    Callback used when the value of the field changes.

    Declaration
    public Action<DebugUI.Field<T>, T> onValueChanged
    Field Value
    Type Description
    Action<DebugUI.Field<T>, T>

    Properties

    getter

    Getter for this field.

    Declaration
    public Func<T> getter { get; set; }
    Property Value
    Type Description
    Func<T>

    setter

    Setter for this field.

    Declaration
    public Action<T> setter { get; set; }
    Property Value
    Type Description
    Action<T>

    Methods

    GetValue()

    Get the value of the field.

    Declaration
    public T GetValue()
    Returns
    Type Description
    T

    Value of the field.

    SetValue(T)

    Set the value of the field.

    Declaration
    public void SetValue(T value)
    Parameters
    Type Name Description
    T value

    Input value.

    SetValue(Object)

    Set the value of the field.

    Declaration
    public void SetValue(object value)
    Parameters
    Type Name Description
    Object value

    Input value.

    Implements
    DebugUI.IValueField.SetValue(Object)

    ValidateValue(T)

    Function used to validate the value when updating the field.

    Declaration
    public virtual T ValidateValue(T value)
    Parameters
    Type Name Description
    T value

    Input value.

    Returns
    Type Description
    T

    Validated value.

    Explicit Interface Implementations

    DebugUI.IValueField.GetValue()

    Get the value of the field.

    Declaration
    object DebugUI.IValueField.GetValue()
    Returns
    Type Description
    Object

    Value of the field.

    Implements
    DebugUI.IValueField.GetValue()

    DebugUI.IValueField.ValidateValue(Object)

    Function used to validate the value when updating the field.

    Declaration
    object DebugUI.IValueField.ValidateValue(object value)
    Parameters
    Type Name Description
    Object value

    Input value.

    Returns
    Type Description
    Object

    Validated value.

    Implements
    DebugUI.IValueField.ValidateValue(Object)

    Extension Methods

    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
    • 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