docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DebugUI.VectorField<T>

    Generic base class for vector fields with stepper support for Runtime.

    Inheritance
    object
    DebugUI.Widget
    DebugUI.Field<T>
    DebugUI.VectorField<T>
    DebugUI.Vector2Field
    DebugUI.Vector3Field
    DebugUI.Vector4Field
    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.VectorField<T> : DebugUI.Field<T>, DebugUI.IValueField where T : struct
    Type Parameters
    Name Description
    T

    The numeric vector type

    Fields

    decimals

    Number of decimals.

    Declaration
    public int decimals
    Field Value
    Type Description
    int

    incStep

    Step increment.

    Declaration
    public float incStep
    Field Value
    Type Description
    float

    incStepMult

    Step increment multiplier.

    Declaration
    public float incStepMult
    Field Value
    Type Description
    float

    Properties

    this[int]

    Declaration
    protected abstract float this[int index] { get; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    float

    Methods

    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()

    CreateEditorVectorField()

    Declaration
    protected abstract BaseField<T> CreateEditorVectorField()
    Returns
    Type Description
    BaseField<T>

    GetComponentCount()

    Declaration
    protected abstract int GetComponentCount()
    Returns
    Type Description
    int

    GetComponentNames()

    Declaration
    protected abstract string[] GetComponentNames()
    Returns
    Type Description
    string[]

    GetVectorComponents(T)

    Declaration
    protected abstract float[] GetVectorComponents(T vector)
    Parameters
    Type Name Description
    T vector
    Returns
    Type Description
    float[]

    GetVectorTypeName()

    Declaration
    protected abstract string GetVectorTypeName()
    Returns
    Type Description
    string

    SetVectorComponent(T, int, float)

    Declaration
    protected abstract T SetVectorComponent(T vector, int componentIndex, float value)
    Parameters
    Type Name Description
    T vector
    int componentIndex
    float value
    Returns
    Type Description
    T

    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)