docs.unity.cn
    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.BoolField
    DebugUI.ColorField
    DebugUI.EnumField<T>
    DebugUI.FloatField
    DebugUI.IntField
    DebugUI.ObjectField
    DebugUI.ObjectListField
    DebugUI.ObjectPopupField
    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
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    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 virtual 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

    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