docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UIntField

    Makes a text field for entering an unsigned integer.

    Inheritance
    object
    CallbackEventHandler
    Focusable
    VisualElement
    BindableElement
    BaseField<uint>
    TextInputBaseField<uint>
    TextValueField<uint>
    UIntField
    Implements
    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IBindable
    INotifyValueChanged<uint>
    IMixedValueSupport
    IValueField<uint>
    Inherited Members
    TextValueField<uint>.StartDragging()
    TextValueField<uint>.StopDragging()
    TextValueField<uint>.AddLabelDragger<TDraggerType>()
    TextValueField<uint>.SetValueWithoutNotify(uint)
    TextValueField<uint>.formatString
    TextValueField<uint>.value
    TextInputBaseField<uint>.singleLineInputUssClassName
    TextInputBaseField<uint>.multilineInputUssClassName
    TextInputBaseField<uint>.textInputUssName
    TextInputBaseField<uint>.MeasureTextSize(string, float, VisualElement.MeasureMode, float, VisualElement.MeasureMode)
    TextInputBaseField<uint>.SelectAll()
    TextInputBaseField<uint>.ExecuteDefaultActionAtTarget(EventBase)
    TextInputBaseField<uint>.UpdateMixedValueContent()
    TextInputBaseField<uint>.textInputBase
    TextInputBaseField<uint>.text
    TextInputBaseField<uint>.isReadOnly
    TextInputBaseField<uint>.isPasswordField
    TextInputBaseField<uint>.selectionColor
    TextInputBaseField<uint>.cursorColor
    TextInputBaseField<uint>.cursorIndex
    TextInputBaseField<uint>.selectIndex
    TextInputBaseField<uint>.maxLength
    TextInputBaseField<uint>.doubleClickSelectsWord
    TextInputBaseField<uint>.tripleClickSelectsLine
    TextInputBaseField<uint>.isDelayed
    TextInputBaseField<uint>.maskChar
    TextInputBaseField<uint>.onIsReadOnlyChanged
    BaseField<uint>.noLabelVariantUssClassName
    BaseField<uint>.labelDraggerVariantUssClassName
    BaseField<uint>.mixedValueLabelUssClassName
    BaseField<uint>.alignedFieldUssClassName
    BaseField<uint>.mixedValueString
    BaseField<uint>.serializedPropertyCopyName
    BaseField<uint>.rawValue
    BaseField<uint>.labelElement
    BaseField<uint>.label
    BaseField<uint>.showMixedValue
    BaseField<uint>.mixedValueLabel
    BindableElement.binding
    BindableElement.bindingPath
    VisualElement.disabledUssClassName
    VisualElement.ExecuteDefaultAction(EventBase)
    VisualElement.Focus()
    VisualElement.SendEvent(EventBase)
    VisualElement.SetEnabledFromHierarchy(bool)
    VisualElement.SetEnabled(bool)
    VisualElement.MarkDirtyRepaint()
    VisualElement.ContainsPoint(Vector2)
    VisualElement.Overlaps(Rect)
    VisualElement.DoMeasure(float, VisualElement.MeasureMode, float, VisualElement.MeasureMode)
    VisualElement.ToString()
    VisualElement.GetClasses()
    VisualElement.ClearClassList()
    VisualElement.AddToClassList(string)
    VisualElement.RemoveFromClassList(string)
    VisualElement.ToggleInClassList(string)
    VisualElement.EnableInClassList(string, bool)
    VisualElement.ClassListContains(string)
    VisualElement.FindAncestorUserData()
    VisualElement.Add(VisualElement)
    VisualElement.Insert(int, VisualElement)
    VisualElement.Remove(VisualElement)
    VisualElement.RemoveAt(int)
    VisualElement.Clear()
    VisualElement.ElementAt(int)
    VisualElement.IndexOf(VisualElement)
    VisualElement.Children()
    VisualElement.Sort(Comparison<VisualElement>)
    VisualElement.BringToFront()
    VisualElement.SendToBack()
    VisualElement.PlaceBehind(VisualElement)
    VisualElement.PlaceInFront(VisualElement)
    VisualElement.RemoveFromHierarchy()
    VisualElement.GetFirstOfType<T>()
    VisualElement.GetFirstAncestorOfType<T>()
    VisualElement.Contains(VisualElement)
    VisualElement.FindCommonAncestor(VisualElement)
    VisualElement.viewDataKey
    VisualElement.userData
    VisualElement.canGrabFocus
    VisualElement.focusController
    VisualElement.usageHints
    VisualElement.transform
    VisualElement.layout
    VisualElement.contentRect
    VisualElement.paddingRect
    VisualElement.worldBound
    VisualElement.localBound
    VisualElement.worldTransform
    VisualElement.pickingMode
    VisualElement.name
    VisualElement.enabledInHierarchy
    VisualElement.enabledSelf
    VisualElement.visible
    VisualElement.generateVisualContent
    VisualElement.experimental
    VisualElement.hierarchy
    VisualElement.cacheAsBitmap
    VisualElement.parent
    VisualElement.panel
    VisualElement.contentContainer
    VisualElement.visualTreeAssetSource
    VisualElement.this[int]
    VisualElement.childCount
    VisualElement.schedule
    VisualElement.style
    VisualElement.customStyle
    VisualElement.styleSheets
    VisualElement.tooltip
    VisualElement.resolvedStyle
    Focusable.Blur()
    Focusable.focusable
    Focusable.tabIndex
    Focusable.delegatesFocus
    CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
    CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
    CallbackEventHandler.HandleEvent(EventBase)
    CallbackEventHandler.HasTrickleDownHandlers()
    CallbackEventHandler.HasBubbleUpHandlers()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Perception.UIElements
    Assembly: Unity.Perception.Editor.dll
    Syntax
    public class UIntField : TextValueField<uint>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<uint>, IMixedValueSupport, IValueField<uint>

    Constructors

    UIntField()

    Constructor.

    Declaration
    public UIntField()

    UIntField(int)

    Constructor.

    Declaration
    public UIntField(int maxLength)
    Parameters
    Type Name Description
    int maxLength

    Maximum number of characters the field can take.

    UIntField(string, int)

    Declaration
    public UIntField(string label, int maxLength = -1)
    Parameters
    Type Name Description
    string label
    int maxLength

    Fields

    inputUssClassName

    USS class name of input elements in elements of this type.

    Declaration
    public static readonly string inputUssClassName
    Field Value
    Type Description
    string

    labelUssClassName

    USS class name of labels in elements of this type.

    Declaration
    public static readonly string labelUssClassName
    Field Value
    Type Description
    string

    ussClassName

    USS class name of elements of this type.

    Declaration
    public static readonly string ussClassName
    Field Value
    Type Description
    string

    Methods

    ApplyInputDeviceDelta(Vector3, DeltaSpeed, uint)

    Modify the value using a 3D delta and a speed, typically coming from an input device.

    Declaration
    public override void ApplyInputDeviceDelta(Vector3 delta, DeltaSpeed speed, uint startValue)
    Parameters
    Type Name Description
    Vector3 delta

    A vector used to compute the value change.

    DeltaSpeed speed

    A multiplier for the value change.

    uint startValue

    The start value.

    Overrides
    TextValueField<uint>.ApplyInputDeviceDelta(Vector3, DeltaSpeed, uint)

    ClampInput(long)

    Declaration
    public static uint ClampInput(long input)
    Parameters
    Type Name Description
    long input
    Returns
    Type Description
    uint

    StringToValue(string)

    Converts a string to an uint.

    Declaration
    protected override uint StringToValue(string str)
    Parameters
    Type Name Description
    string str

    The string to convert.

    Returns
    Type Description
    uint

    The uint parsed from the string.

    Overrides
    TextInputBaseField<uint>.StringToValue(string)

    ValueToString(uint)

    Converts the given uint to a string.

    Declaration
    protected override string ValueToString(uint v)
    Parameters
    Type Name Description
    uint v

    The uint to be converted to string.

    Returns
    Type Description
    string

    The uint as string.

    Overrides
    TextInputBaseField<uint>.ValueToString(uint)

    Implements

    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IBindable
    UnityEngine.UIElements.INotifyValueChanged<T>
    IMixedValueSupport
    UnityEditor.UIElements.IValueField<T>
    In This Article
    Back to top
    Copyright © 2024 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)