docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BoundsField

    Bounds Field UI element.

    Inheritance
    object
    CallbackEventHandler
    Focusable
    VisualElement
    BaseVisualElement
    BoundsField
    Implements
    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IContextOverrideElement
    IInputElement<Bounds>
    IValidatableElement<Bounds>
    ISizeableElement
    INotifyValueChanging<Bounds>
    INotifyValueChanged<Bounds>
    Inherited Members
    BaseVisualElement.contextPrefix
    BaseVisualElement.scaleOverride
    BaseVisualElement.themeOverride
    BaseVisualElement.langOverride
    BaseVisualElement.layoutDirectionOverride
    BaseVisualElement.preferredTooltipPlacementOverride
    BaseVisualElement.tooltipDelayMsOverride
    BaseVisualElement.GetLayoutDirectionUssClassName(Dir)
    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.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()
    CallbackEventHandler.ExecuteDefaultActionAtTarget(EventBase)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public class BoundsField : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IInputElement<Bounds>, IValidatableElement<Bounds>, ISizeableElement, INotifyValueChanging<Bounds>, INotifyValueChanged<Bounds>

    Constructors

    BoundsField()

    Default constructor.

    Declaration
    public BoundsField()

    Fields

    labelUssClassName

    The BoundsField Label styling class.

    Declaration
    public const string labelUssClassName = "appui-boundsfield__label"
    Field Value
    Type Description
    string

    rowUssClassName

    The BoundsField row styling class.

    Declaration
    public const string rowUssClassName = "appui-boundsfield__row"
    Field Value
    Type Description
    string

    sizeUssClassName

    The BoundsField size styling class.

    Declaration
    public const string sizeUssClassName = "appui-boundsfield--size-"
    Field Value
    Type Description
    string

    sxFieldUssClassName

    The BoundsField X NumericalField styling class.

    Declaration
    public const string sxFieldUssClassName = "appui-boundsfield__sx-field"
    Field Value
    Type Description
    string

    syFieldUssClassName

    The BoundsField Y NumericalField styling class.

    Declaration
    public const string syFieldUssClassName = "appui-boundsfield__sy-field"
    Field Value
    Type Description
    string

    szFieldUssClassName

    The BoundsField Z NumericalField styling class.

    Declaration
    public const string szFieldUssClassName = "appui-boundsfield__sz-field"
    Field Value
    Type Description
    string

    ussClassName

    The BoundsField main styling class.

    Declaration
    public const string ussClassName = "appui-boundsfield"
    Field Value
    Type Description
    string

    xFieldUssClassName

    The BoundsField X NumericalField styling class.

    Declaration
    public const string xFieldUssClassName = "appui-boundsfield__x-field"
    Field Value
    Type Description
    string

    yFieldUssClassName

    The BoundsField Y NumericalField styling class.

    Declaration
    public const string yFieldUssClassName = "appui-boundsfield__y-field"
    Field Value
    Type Description
    string

    zFieldUssClassName

    The BoundsField Z NumericalField styling class.

    Declaration
    public const string zFieldUssClassName = "appui-boundsfield__z-field"
    Field Value
    Type Description
    string

    Properties

    contentContainer

    The content container of the BoundsField. Always null.

    Declaration
    public override VisualElement contentContainer { get; }
    Property Value
    Type Description
    VisualElement
    Overrides
    VisualElement.contentContainer

    invalid

    Set the validation state of the BoundsField.

    Declaration
    public bool invalid { get; set; }
    Property Value
    Type Description
    bool

    size

    The BoundsField size.

    Declaration
    public Size size { get; set; }
    Property Value
    Type Description
    Size

    validateValue

    The validation function of the BoundsField.

    Declaration
    public Func<Bounds, bool> validateValue { get; set; }
    Property Value
    Type Description
    Func<Bounds, bool>

    value

    The value of the BoundsField.

    Declaration
    public Bounds value { get; set; }
    Property Value
    Type Description
    Bounds

    Methods

    GetSizeUssClassName(Size)

    Declaration
    public static string GetSizeUssClassName(Size enumValue)
    Parameters
    Type Name Description
    Size enumValue
    Returns
    Type Description
    string

    SetValueWithoutNotify(Bounds)

    Sets the value of the BoundsField without notifying the value changed callback.

    Declaration
    public void SetValueWithoutNotify(Bounds newValue)
    Parameters
    Type Name Description
    Bounds newValue

    The new value of the BoundsField.

    Implements

    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IContextOverrideElement
    IInputElement<TValueType>
    IValidatableElement<TValueType>
    ISizeableElement
    INotifyValueChanging<TValueType>
    INotifyValueChanged<T>

    Extension Methods

    NotifyValueChangingExtensions.RegisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)
    NotifyValueChangingExtensions.UnregisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)
    VisualElementExtensions.FindNavController(VisualElement)
    VisualElementExtensions.GetChildren<T>(VisualElement, bool)
    VisualElementExtensions.GetContextProvider<T>(VisualElement)
    VisualElementExtensions.GetContext<T>(VisualElement)
    VisualElementExtensions.GetPreferredTooltipPlacement(VisualElement)
    VisualElementExtensions.GetSelfContext<T>(VisualElement)
    VisualElementExtensions.GetTooltipTemplate(VisualElement)
    VisualElementExtensions.IsContextProvider<T>(VisualElement)
    VisualElementExtensions.ProvideContext<T>(VisualElement, T)
    VisualElementExtensions.RegisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    VisualElementExtensions.SetPreferredTooltipPlacement(VisualElement, OptionalEnum<PopoverPlacement>)
    VisualElementExtensions.SetTooltipTemplate(VisualElement, VisualElement)
    VisualElementExtensions.UnregisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    In This Article
    Back to top
    Copyright © 2025 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)