docs.unity3d.com
    目次を表示する/隠す

    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.queryPath
    DebugUI.Widget.isEditorOnly
    DebugUI.Widget.isRuntimeOnly
    DebugUI.Widget.isInactiveInEditor
    DebugUI.Widget.GetHashCode()
    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)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)