기술 자료

Unity Engine

Download Unity

Unity Engine

UnityEngine.UIElementsModule

The UIElements module implements the UIElements retained mode UI framework.
읽는 시간 32분최근 업데이트: 2시간 전

Definition

  • Type: Module

Classes

Class

Description

AbstractBaseFieldNon-generic abstract base class for field controls.
AbstractGenericMenuBase class for menu functionality.
AbstractProgressBarAbstract base class for the ProgressBar.
AlignmentUtilsStatic class containing utility methods for aligning visual elements.
AttachToPanelEventEvent sent after an element is added to an element that is a descendant of a panel.
BackgroundPropertyHelperHelper to convert between background properties and ScaleMode.
BaseBoolFieldA BaseBoolField is a clickable element that represents a boolean value.
BaseCompositeField<TValueType, TField, TFieldValue>This is the base class for the composite fields.
BaseField<TValueType>Abstract base class for controls.
BaseFieldMouseDraggerProvides the base class for field mouse draggers.
BaseListViewBase class for a list view, a vertically scrollable area that links to, and displays, a list of items.
BaseListViewControllerBase collection list view controller. View controllers of this type are meant to take care of data virtualized by any BaseListView inheritor.
BaseMask64FieldA control that lets users select one or more options from a list of options.
BaseMaskField<TChoice>Base class implementing the shared functionality for editing bit mask values. For more information, refer to UXML element MaskField.
BasePopupField<TValueType, TValueChoice>This is the base class for all the popup field elements. TValue and TChoice can be different, see MaskField, or the same, see PopupField
BaseSlider<TValueType>This is a base class for the Slider fields.
BaseTreeViewBase class for a tree view, a vertically scrollable area that links to, and displays, a list of items organized in a tree.
BaseTreeViewControllerBase collection tree view controller. View controllers of this type are meant to take care of data virtualized by any BaseTreeView inheritor.
BaseVerticalCollectionViewBase class for controls that display virtualized vertical content inside a scroll view.
BindableElementElement that can be bound to a property. For more information, refer to UXML element BindableElement.
BindingBase class for defining a binding.
BlurEventEvent sent immediately after an element has lost focus. This event trickles down and does not bubbles up.
BoundsFieldA Bounds editor field. For more information, refer to UXML element BoundsField.
BoundsIntFieldA BoundsInt field. For more information, refer to UXML element BoundsIntField.
BoxStyled visual element to match the IMGUI Box Style. For more information, refer to UXML element Box.
ButtonRepresents an interactive UI button element.
CallbackEventHandlerInterface for classes capable of having callbacks to handle events.
ChangeEvent<T>Sends an event when a value in a field changes.
ClickableManipulator that tracks pointer events on an element and callbacks when the elements is clicked.
ClickEventThis event is sent when the left mouse button is clicked.
CollectionViewControllerBase collection view controller. View controllers are meant to take care of data virtualized by any BaseVerticalCollectionView inheritor.
ColumnRepresents a column in multi-column views such as multi-column list view or multi-column tree view. Provides the properties to define how user interacts with a column in a multi-column view, how its data and the data of each cell in this column are represented.
ColumnsRepresents a collection of columns.
CommandEventBase<T>Base class for command events.
ContextClickEventThe event sent when clicking the right mouse button.
ContextualMenuManagerUse this class to display a contextual menu.
ContextualMenuManipulatorManipulator that displays a contextual menu when the user clicks the right mouse button or presses the menu key on the keyboard.
ContextualMenuPopulateEventThe event sent when a contextual menu requires menu items. The event trickles down and bubbles up.
ConverterGroupA type to hold information about a conversion registry used locally on bindings.
ConverterGroupsProvides a set of static methods to register and use converter groups and registers a set of global converters. ConverterGroup. DataBinding.
CustomBindingBase class for general purpose binding extensibility.
CustomStyleResolvedEventEvent sent after the custom style properties of a VisualElement have been resolved.
DataBindingBinding type that enables data synchronization between a property of a data source and a property of a VisualElement.
DefaultMultiColumnTreeViewController<T>Default implementation of a MultiColumnTreeViewController.
DefaultTreeViewController<T>Default implementation of a TreeViewController.
DetachFromPanelEventEvent sent just before an element is detached from its parent, if the parent is the descendant of a panel.
DoubleFieldMakes a text field for entering doubles.
DragAndDropDataData stored during drag-and-drop operations, enabling information to be carried throughout the process.
DragAndDropEventBase<T>Base class for drag and drop events.
DragEnterEventUse the DragEnterEvent class to manage events that occur when dragging enters an element or one of its descendants. The DragEnterEvent does not trickle down and does not bubble up.
DragExitedEventThe event sent to a dragged element when the drag and drop process ends.
DragLeaveEventUse the DragLeaveEvent class to manage events sent when dragging leaves an element or one of its descendants. The DragLeaveEvent does not trickle down and does not bubble up.
DragPerformEventThe event sent to an element when another element is dragged and dropped on the element.
DragUpdatedEventThe event sent when the element being dragged enters a possible drop target.
DropdownFieldA control that allows the user to pick a choice from a list of options. For more information, refer to UXML element DropdownField.
DropdownMenuRepresents a dropdown menu, similar to the menus seen in most Operating Systems (OS) and across the Unity Editor.
DropdownMenuActionRepresents a menu action item.
DropdownMenuEventInfoProvides information about the event that caused the dropdown menu to display.
DropdownMenuItemRepresents an item in a dropdown menu.
DropdownMenuSeparatorProvides a separator menu item.
DynamicAtlasSettingsContains the settings used by the dynamic atlas system.
EasingA collection of easing curves to be used with ValueAnimations.
EnumFieldMakes a dropdown for switching between enum values. For more information, refer to UXML element EnumField.
EventArgBase class for all instances of EventArg<TArg>.
EventArg<TArg>A reusable identifier for an event callback argument of type
TArg
.
EventBaseThe base class for all UIElements events. The class implements IDisposable to ensure proper release of the event from the pool and of any unmanaged resources, when necessary.
EventBase<T>Generic base class for events, implementing event pooling and automatic registration to the event type system.
EventCallbackA static class that allows creation of EventCallbackDefinition and EventCallbackDefinition<TElement> instances.
EventDispatcherDispatches events to a IPanel.
EventInterestAttributeOptional attribute on overrides of CallbackEventHandler.HandleEventBubbleUp and CallbackEventHandler.HandleEventTrickleDown. Use this attribute to specify all the event types used by the method override. The event dispatcher can then safely skip events not needed for this method if they are identified internally as valid candidates for performance optimizations.
ExecuteCommandEventThis event is sent by the Editor when an element in the panel should execute a command.
FieldMouseDragger<T>Provides dragging on a visual element to change a value field.
FilterFunctionDefinitionRepresents a filter function definition that holds the parameters and effects of a filter.
FloatFieldMakes a text field for entering a float. For more information, refer to UXML element FloatField.
FocusableBase class for objects that can get the focus.
FocusChangeDirectionBase class for defining in which direction the focus moves in a focus ring.
FocusControllerClass in charge of managing the focus inside a Panel.
FocusEventEvent sent immediately after an element has gained focus. This event trickles down and does not bubbles up.
FocusEventBase<T>Base class for focus related events.
FocusInEventEvent sent immediately before an element gains focus. This event trickles down and bubbles up.
FocusOutEventEvent sent immediately before an element loses focus. This event trickles down and bubbles up.
FoldoutA Foldout control is a collapsible section of a user interface. When toggled, it expands or collapses, which hides or reveals the elements it contains.
GenericDropdownMenuGenericDropdownMenu allows you to display contextual menus with default textual options or any VisualElement.
GeometryChangedEventThis event is sent after layout calculations, when the position or the dimension of an element changes.
GroupBoxThis is an enclosing container for a group of IGroupBoxOption. All group options within this container will interact together to allow a single selection, using the DefaultGroupManager. Default options are RadioButton, but users can provide other implementations. If no IGroupBox is found in the hierarchy, the default container will be the panel.
GUIDFieldMakes a field for editing an GUID.
Hash128FieldMakes a field for editing an Hash128. For more information, refer to UXML element Hash128Field.
HelpBoxMakes a help box with a message to the user. For more information, refer to UXML element HelpBox.
IBindingExtensionsExtensions methods to provide additional IBindable functionality.
ImageA VisualElement representing a source texture.
IMGUIContainerElement that draws IMGUI content in the editor. For more information, refer to UXML element IMGUIContainer.
IMGUIEventClass used to send a IMGUI event that has no equivalent UIElements event.
ImmediateModeElementVisualElement that can implement custom immediate mode rendering.
INotifyValueChangedExtensionsINotifyValueChangedExtensions is a set of extension methods useful for objects implementing INotifyValueChanged<T>.
InputEventSends an event when text from a TextField changes.
IntegerFieldMakes a text field for entering an integer. For more information, refer to UXML element LongField.
KeyboardEventBase<T>This is the base class for keyboard events.
KeyboardNavigationManipulatorProvides a default implementation for translating input device specific events to higher level navigation operations as commonly possible with a keyboard.
KeyDownEventThis event is sent when a key is pressed.
KeyUpEventThis event is sent when a pressed key is released.
LabelProvides an Element displaying text. For more information, refer to UXML element Label.
ListViewA ListView is a vertically scrollable area that links to, and displays, a list of items.
ListViewControllerList view controller. View controllers of this type are meant to take care of data virtualized by any ListView inheritor.
LongFieldMakes a text field for entering long integers. For more information, refer to UXML element LongField.
ManipulatorBase class for all Manipulator implementations.
Mask64FieldThe Mask64Field is a control that lets users select one or more options from a list of 64-bit mask options.
MaskFieldThe MaskField is a control that lets users select one or more options from a list of options. For more information, refer to UXML element MaskField.
MeshGenerationContextProvides methods for generating a visual element's visual content during the VisualElement.generateVisualContent callback.
MeshWriteDataRepresents the vertex and index data allocated for drawing the content of a VisualElement.
MinMaxSliderA min/max slider containing a representation of a range. For more information, refer to UXML element MinMaxSlider.
MouseCaptureControllerClass that manages capturing mouse events.
MouseCaptureEventEvent sent after a handler starts capturing the mouse.
MouseCaptureEventBase<T>Event sent when the handler capturing the mouse changes.
MouseCaptureOutEventEvent sent before a handler stops capturing the mouse.
MouseDownEventThis event is sent when a mouse button is pressed.
MouseEnterEventEvent sent when the mouse pointer enters an element or one of its descendent elements. The event trickles down but does not bubble up.
MouseEnterWindowEventEvent sent when the mouse pointer enters a window. The event bubbles up but does not trickle down.
MouseEventBase<T>The base class for mouse events.
MouseLeaveEventEvent sent when the mouse pointer exits an element and all its descendent elements. The event trickles down but does not bubble up.
MouseLeaveWindowEventEvent sent when the mouse pointer exits a window. The event bubbles up but does not trickle down.
MouseManipulatorMouseManipulators have a list of activation filters.
MouseMoveEventThis event is sent when the mouse moves.
MouseOutEventEvent sent when the mouse pointer exits an element. The event trickles down and bubbles up.
MouseOverEventEvent sent when the mouse pointer enters an element. The event trickles down and bubbles up.
MouseUpEventThis event is sent when a mouse button is released.
MultiColumnControllerThe default controller for a multi column view. Takes care of adding the MultiColumnCollectionHeader and reacting to the various callbacks.
MultiColumnListViewA list view with multi column support. For more information, refer to MultiColumnListView.
MultiColumnListViewControllerMulti-column list view controller. View controllers of this type are meant to take care of data virtualized by any MultiColumnListView inheritor.
MultiColumnTreeViewA tree view with multi column support. For more information, refer to MultiColumnTreeView.
MultiColumnTreeViewControllerMulti-column tree view controller. View controllers of this type are meant to take care of data virtualized by any MultiColumnTreeView inheritor.
NavigationCancelEventEvent sent when the user presses the cancel button.
NavigationEventBase<T>Navigation events abstract base class.
NavigationMoveEventEvent typically sent when the user presses the D-pad, moves a joystick or presses the arrow keys.
NavigationSubmitEventEvent sent when the user presses the submit button.
Painter2DObject to draw 2D vector graphics.
PanelChangedEventBase<T>Abstract base class for events notifying of a panel change.
PanelExtensionsProvides extension methods for Panel utilities.
PanelInputConfigurationConfigures how input is routed to Panels in runtime. If no Input Configuration component is active, default configurations are used.
PanelRendererDefines a component that connects VisualElement to GameObject.
PanelSettingsDefines a Panel Settings asset that instantiates a panel at runtime. The panel makes it possible for Unity to display UXML-file based UI in the Game view.
PanelTextSettingsRepresents text rendering settings for a specific UI panel. PanelSettings.textSettings
PointerCancelEventThis event is sent when pointer interaction is cancelled.
PointerCaptureEventEvent sent when a pointer is captured by a VisualElement.
PointerCaptureEventBase<T>Base class for pointer capture events and mouse capture events.
PointerCaptureHelperA static class to capture and release pointers.
PointerCaptureOutEventEvent sent when a VisualElement releases a pointer.
PointerDownEventSends when a pointer is pressed inside a visual element.
PointerDownLinkTagEventThis event is sent when a pointer is pressed on a Link tag.
PointerEnterEventThis event is sent when a pointer enters a VisualElement or one of its descendants. The event does not trickle down and does not bubble up.
PointerEventBase<T>Base class for all pointer-related events.
PointerIdA static class that holds pointer ID values.
PointerLeaveEventThis event is sent when a pointer exits an element and all of its descendants. The event does not trickle down and does not bubble up.
PointerManipulatorPointerManipulators have a list of activation filters.
PointerMoveEventThis event is sent when a pointer changes state.
PointerMoveLinkTagEventThis event is sent when a pointer changes state on a link tag.
PointerOutEventThis event is sent when a pointer exits an element. The event trickles down and bubbles up.
PointerOutLinkTagEventThis event is sent when a pointer exits a link tag.
PointerOverEventThis event is sent when a pointer enters an element. The event trickles down and bubbles up.
PointerOverLinkTagEventThis event is sent when a pointer enters a link tag.
PointerTypeA static class that holds pointer type values.
PointerUpEventThis event is sent when a pointer's last pressed button is released.
PointerUpLinkTagEventThis event is sent when a pointer's last pressed button is released on a link tag.
PopupField<T>Generic popup selection field.
PopupWindowStyled visual text element. This element doesn't have any functionality. It's just a container with a border and a title, rather than a window or popup. For more information, refer to UXML element PopupWindow.
ProgressBarA control that displays the progress between a lower and upper bound value. For more information, refer to UXML element ProgressBar.
RadioButtonA control that allows users to select a single option inside a RadioButtonGroup. For more information, refer to UXML element RadioButton.
RadioButtonGroupA control that allows single selection out of a logical group of RadioButton elements. Selecting one will deselect the others. For more information, refer to UXML element RadioButtonGroup.
RectFieldA Rect field. For more information, refer to UXML element RectField.
RectIntFieldA RectInt field. For more information, refer to UXML element RectIntField.
RegisterUxmlCacheAttributeAttribute allowing the UXML registry to more efficiently retrieve the UXML description data.
RepeatButtonA button that executes an action repeatedly while it is pressed. For more information, refer to UXML element RepeatButton.
RuntimePanelUtilsA collection of static methods that provide simple World, Screen, and Panel coordinate transformations.
ScrollerA vertical or horizontal scrollbar. For more information, refer to UXML element Scroller.
ScrollViewDisplays its contents inside a scrollable frame. For more information, refer to the ScrollView user manual page.
SliderA slider containing floating point values.
SliderIntA slider containing Integer discrete values. For more information, refer to UXML element SliderInt.
SortColumnDescriptionThis represents a description on what column to sort and in which order.
SortColumnDescriptionsThis represents a collection or SortColumnDescriptions in multi SortColumnDescription views.
StyleSheetStyle sheets are applied to visual elements in order to control the layout and visual appearance of the user interface.
TabCreates a tab to organize content on different screens.
TabViewCreates a tab view that groups a one or more Tab elements.
TemplateContainerRepresents the root VisualElement of UXML file.
TextElementUse this as the super class if you are declaring a custom VisualElement that displays text. For example, Button or Label use this as their base class. For more information, refer to UXML element TextElement.
TextFieldA TextField accepts and displays text input. For more information, refer to UXML element TextField.
TextInputBaseField<TValueType>Abstract base class used for all text-based fields.
TextValueField<TValueType>Base class for text fields.
ThemeStyleSheetRepresents a style sheet that's assembled from other style sheets.
ToggleA Toggle is a clickable element that represents a boolean value.
ToggleButtonGroupA control that allows single or multiple selection out of a logical group of Button elements.
ToggleButtonGroupStatePropertiesAttributeDefines how a serialized ToggleButtonGroupState will be initialized in the inspector.
TooltipEventEvent sent to find the first VisualElement that displays a tooltip.
TransitionCancelEventEvent sent when a transition is canceled.
TransitionEndEventEvent sent at the completion of the transition. In the case where a transition is removed before completion then the event will not fire.
TransitionEventBase<T>Transition events abstract base class.
TransitionRunEventEvent sent when a transition is created (i.e. added to the set of running transitions).
TransitionStartEventEvent sent when a transition's delay phase ends.
TreeViewA TreeView is a vertically scrollable area that links to, and displays, a list of items organized in a tree.
TreeViewControllerTree view controller. View controllers of this type are meant to take care of data virtualized by any TreeView inheritor.
TreeViewExpansionChangedArgsA data structure for the tree view item expansion event.
TwoPaneSplitViewA SplitView that contains two resizable panes. One pane is fixed-size while the other pane has flex-grow style set to 1 to take all remaining space. The border between the panes is draggable to resize both panes. Both horizontal and vertical modes are supported. Requires exactly two child elements to operate.
UIAnimationClipAn asset used to animate VisualElement hierarchies.
UIDocumentDefines a Component that connects VisualElements to GameObjects.
UIRendererA renderer Component that should be added next to a UIDocument Component to allow world-space rendering. This Component is added automatically by the UIDocument when the PanelSettings asset is configured in world-space.
UnsignedIntegerFieldMakes a text field for entering an unsigned integer. For more information, refer to UXML element UnsignedIntegerField.
UnsignedLongFieldMakes a text field for entering unsigned long integers. For more information, refer to UXML element UnsignedLongField.
UQueryUQuery is a set of extension methods allowing you to select individual or collection of visualElements inside a complex hierarchy. See UQuery manual page for further information.
UQueryExtensionsUQuery is a set of extension methods allowing you to select individual or collection of visualElements inside a complex hierarchy. For more information, refer to Find visual elements with UQuery.
UxmlAttributeAttributeDeclares that a field or property is associated with a UXML attribute. Convenience overload, shorthand for
Query<T>.Build().First().
UxmlChildElementDescriptionDescribe an allowed child element for an element.
UxmlCreateInstanceMethodAttributeDeclares a method to create instances in place of the default constructor.
UxmlDescriptionCacheContains pre-processed information about UXML attribute descriptions to avoid relying on reflection.
UxmlElementAttributeDeclares a custom control.
UxmlEnumerationRestricts the value of an attribute to be taken from a list of values.
UxmlIgnoreAttributeUsed for fields that are serialized but do not come from UXML data, such as uxmlAssetId.
UxmlObjectAttributeDeclares that a class can be instantiated from UXML and contain UXML attributes. The UxmlSerializedData includes a generated UxmlSerializedData.CreateInstance method that uses the default constructor. You can use the UxmlCreateInstanceMethodAttribute to replace the default behaviour and provide your own creation method.
UxmlObjectReferenceAttributeDeclares that a field or property is associated with nested UXML objects.
UxmlSerializedDataGenerates an instance of the declaring element when the UxmlElementAttribute is used in a custom control.
UxmlSerializedDataUtilityThis is used by the code generator when a custom control is using the UxmlElementAttribute.
UxmlTypeReferenceAttributeProvides information about the expected type when applied to a Type field or property that has the UxmlAttributeAttribute attribute.
UxmlTypeRestrictionBase class to restricts the value of an attribute.
UxmlValueBoundsRestricts the value of an attribute to be within the specified bounds.
UxmlValueMatchesRestricts the value of an attribute to match a regular expression.
ValidateCommandEventThis event is sent by the Editor while it determines whether the command will be handled by an element in the panel.
ValueAnimation<T>Implementation object for transition animations.
Vector2FieldA Vector2 field. For more information, refer to UXML element Vector2Field.
Vector2IntFieldA Vector2Int field. For more information, refer to UXML element Vector2IntField.
Vector3FieldA Vector3 field. For more information, refer to UXML element Vector3Field.
Vector3IntFieldA Vector3Int field. For more information, refer to UXML element Vector3IntField.
Vector4FieldA Vector4 field. For more information, refer to UXML element Vector4Field.
VectorImageAn asset that represents a vector image.
VisualElementBase class for objects that are part of the UIElements visual tree.
VisualElementAssetReferenceTableA reference table to map authoring id paths to VisualElements.
VisualElementExtensionsVisualElementExtensions is a set of extension methods useful for VisualElement.
VisualElementFocusChangeDirectionDefine focus change directions for the VisualElementFocusRing.
VisualElementFocusRingImplementation of a linear focus ring. Elements are sorted according to their focusIndex.
VisualElementReferenceRepresents a reference to a VisualElement in a PanelRenderer.
VisualElementReference<T>Represents a strongly-typed reference to a VisualElement in a PanelRenderer.
VisualTreeAssetAn instance of this class holds a tree of
VisualElementAsset's
, created from a UXML file. Each node in the file corresponds to a
VisualElementAsset
. You can clone a
VisualTreeAsset
to create a tree of
VisualElement's
.
WheelEventThis event is sent when the mouse wheel moves.

Structs

Struct

Description

AngleRepresents an angle value.
AuthoringIdPathStruct representing a path of authoring IDs used to identify VisualElements.
BackgroundDescribes a VisualElement background.
BackgroundPositionScript interface for VisualElement background-position style property BackgroundPosition.
BackgroundRepeatScript interface for VisualElement background-repeat style property IStyle.backgroundRepeat.
BackgroundSizeScript interface for VisualElement background-size style property BackgroundSize.
BindablePropertyChangedEventArgsProvides information about the property that has changed.
BindingActivationContextContains information passed to binding instances during registration and deregistration.
BindingContextContext object containing the necessary information to resolve a binding.
BindingIdDefines a binding property that serves as an identifier for the binding system.
BindingInfoProvides information about a binding.
BindingResultProvides information about the binding update.
CanStartDragArgsInformation about a drag-and-drop operation that is about to start. See BaseVerticalCollectionView.canStartDrag.
CreationContextThis structure holds information used during UXML template instantiation.
CursorScript interface for VisualElement cursor style property IStyle.cursor.
CustomStyleProperty<T>Define a custom style property for an element to be retrieved with CustomStyleResolvedEvent.
DataSourceContextContains information about the data source and data source path of a binding.
DataSourceContextChangedContains information passed to binding instances when the resolved data source context has changed.
DrawDataMutable view over one generated mesh belonging to the current element.
DrawDataEnumerableIterable view over the draws of a MeshModificationContext.
DrawDataEnumeratorEnumerator over the draws of a MeshModificationContext.
EasingFunctionDetermines how intermediate values are calculated for a transition.
EventCallbackDefinitionAn object that can be registered on VisualElements to react to any event type.
EventCallbackDefinition<TElement>An object that can be registered on elements of the specified type to react to any event type.
EventCallbackGroupAn object that can be registered on elements of a any type to rapidly register multiple event callbacks.
EventCallbackGroup<TElement>An object that can be registered on elements of a specific type to rapidly register multiple event callbacks.
EventDispatcherGateGates control when the dispatcher processes events.
FillGradientDescribes a fill gradient used for rendering filled shapes in Painter2D. The start, end , center, focus, and radius properties are pixel coordinate relative to the painter's coordinate system.
FilterFunctionRepresents a filter function that holds the definition and parameters of a filter.
FilterParameterRepresents a filter parameter for a FilterFunctionDefinition.
FilterParameterDeclarationThe filter parameter declaration for a FilterFunctionDefinition.
FilterPassContextThe context of the filter.
FontDefinitionDescribes a VisualElement font.
HandleDragAndDropArgsInformation about a drag-and-drop operation in progress. See BaseVerticalCollectionView.dragAndDropUpdate and BaseVerticalCollectionView.handleDrop.
LengthRepresents a distance value.
ManipulatorActivationFilterDefines conditions for manipulators to respond to specific events.
MaterialDefinitionDescribes a VisualElement material.
MeshGenerationNodeContains a part of the draw sequence of a VisualElement. You can use it in a job to add nested draw calls.
MeshModificationContextPer-invocation context passed to a MeshModificationCallback.
ParameterBindingRepresents a binding of a parameter index to a post-processing material property.
PostProcessingMarginsThe post-processing margins required by a FilterFunction.
PostProcessingPassRepresents a post-processing effect that can be applied to a visual element. This is used as part of a FilterFunctionDefinition.
RatioRepresents a ratio, used for Aspect Ratio style property.
RotateProvides rotation information for visual elements that rotates around the TransformOrigin. Positive values represent clockwise rotation.
ScaleRepresents the scale applied as element transformations. The center point that doesn't move when the scaling is applied is the TransformOrigin.
SetupDragAndDropArgsInformation about a drag-and-drop operation that just started. You can use it to store generic data for the rest of the drag. See BaseVerticalCollectionView.setupDragAndDrop.
StartDragArgsProvides entry points to initialize the new drag-and-drop operation.
StyleBackgroundStyle value that can be either a Background or a StyleKeyword.
StyleBackgroundPositionRepresents a style value that can be either a BackgroundPosition or a StyleKeyword.
StyleBackgroundRepeatRepresents a style value that can be either a BackgroundRepeat or a StyleKeyword.
StyleBackgroundSizeRepresents a style value that can be either a BackgroundSize or a StyleKeyword.
StyleColorStyle value that can be either a Color or a StyleKeyword.
StyleCursorStyle value that can be either a Cursor or a StyleKeyword.
StyleEnum<T>Style value that can be either an enum or a StyleKeyword.
StyleFloatStyle value that can be either a float or a StyleKeyword.
StyleFontStyle value that can be either a Font or a StyleKeyword.
StyleFontDefinitionStyle value that can be either a FontDefinition or a StyleKeyword.
StyleIntStyle value that can be either an integer or a StyleKeyword.
StyleLengthStyle value that can be either a Length or a StyleKeyword.
StyleList<T>Style value that can be either a list or a StyleKeyword.
StyleMaterialDefinitionStyle value that can be either a Material or a StyleKeyword.
StylePropertyNameDefines the name of a style property.
StylePropertyNameCollectionCollection of StylePropertyName.
StyleRatioRepresents a ratio value, denotes the proportion between two unitless values.
StyleRotateRepresents a style value that can be either a Rotate or a StyleKeyword.
StyleScaleStyle value that can be either a Scale or a StyleKeyword.
StyleTextAutoSizeStyle value that can be either a TextAutoSize or a StyleKeyword.
StyleTextShadowStyle value that can be either a TextShadow or a StyleKeyword.
StyleTransformOriginRepresents a style value that can be either a TransformOrigin or a StyleKeyword.
StyleTranslateStyle value that can be either a Translate or a StyleKeyword.
StyleUIAnimationClipStyle value that can be either a UIAnimationClip or a StyleKeyword.
StyleValuesContainer object used to animate multiple style values at once.
TempMeshAllocatorUsed in jobs to allocate UI Toolkit temporary meshes.
TextAutoSizeSetting controls automatic font‑size adjustment.
TextShadowScript interface for VisualElement text-shadow style property IStyle.textShadow.
TimerStateContains timing information of IVisualElementScheduler events.
TimeValueRepresents a time value.
ToggleButtonGroupStateThe structure that keeps track of the Button states inside a ToggleButtonGroup.
TransformOriginRepresents the point of origin where the transformations (Scale, Translate, and Rotate) are applied.
TranslateRepresents a translation of the object. Percentage values in X and Y are relative to the width and height of the visual element where the style value is applied.
TreeViewItemData<T>Item structure provided to a TreeView using the default implementation. For more information on usage, refer to TreeView and Create list and tree views.
UIMeshBundle of vertex, index, and optional extras slices passed to MeshGenerationContext.DrawMesh.
UniqueStyleStringA unique integer-based representation for common strings used in various style algorithms for faster comparison and reduced memory footprint.
UQueryBuilder<T>Utility Object that constructs a set of selection rules to be run on a root visual element.
UQueryState<T>Query object containing all the selection rules. The object can be saved and rerun later without re-allocating memory.
UxmlAttributeNamesHolds the description data of a UXML attribute.
VertexRepresents a vertex of geometry for drawing content of VisualElement.
VisualElementStyleSheetSetThis structure manipulates the set of StyleSheet objects attached to the owner VisualElement.

Enums

Enum

Description

AddressModeSpecifies how the gradient is sampled when UV coordinates are outside the [0, 1] range.
AlignDefines the alignment behavior along an axis.
AlternatingRowBackgroundOptions to display alternating background colors for collection view rows.
AngleUnitUnit of measurement used to express the value of an Angle.
AnimationPlayStateDetermines whether a USS animation is running or paused.
ArcDirectionDirection to use when defining an arc (see Painter2D.Arc).
BackgroundPositionKeywordDefines the position of the background.
BackgroundSizeTypeDefines the size of the background.
BindingLogLevelOptions to change the log level for warnings that occur during the update of data bindings.
BindingModeBinding mode to control how a binding is updated.
BindingSourceSelectionModeOption to change the data source assignation when using Data Binding in collection views.
BindingStatusStatus to report the result of a binding update.
BindingUpdateTriggerOption to tell a binding when to update.
CallbackOptionsExtra properties that can be used in CallbackEventHandler.RegisterCallback{TEvent}(TEvent, CallbackOptions).
CollectionVirtualizationMethodOptions to change the virtualization method used by the collection view to display its content.
ColumnSortingModeDefines the sorting mode of a MultiColumnListView or MultiColumnTreeView.
ContextTypeDescribes in which context a VisualElement hierarchy is being run.
DeltaSpeedSpeed at which the value changes for a given input device delta.
DisplayStyleDefines how an element is displayed in the layout.
DragAndDropPositionPosition where the drop operation occurs.
DragVisualModeThe status of a drag-and-drop operation.
DrawPhaseClassifies the visual phase a draw belongs to in element rendering.
DropdownMenuSizeModeMode used to calculate the width of a dropdown.
DynamicAtlasFiltersOptions to enable or disable filters for the dynamic atlas.
EasingModeRepresents a mathematical function that describes the rate at which a numerical value changes.
EditorTextRenderingModeDefines how the editor rendering the text by default
EventInterestOptionsOptions used as arguments for EventInterestAttribute when the affected method treats events in a general, non type-specific manner.
ExtraVertexChannelsOptional per-vertex channels that a UI Toolkit panel can opt into for use by custom shaders.
FillRuleThe fill rule to use when filling shapes with Painter2D.Fill.
FilterFunctionTypeThe filter function type for a FilterFunction .
FilterParameterTypeThe type of a filter parameter.
FlexDirectionDefines the main-axis of the flex layout.
GradientTypeSpecifies the type of gradient to use for color interpolation.
HelpBoxMessageTypeUser message types.
JustifyDefines the alignment along the main axis, how is extra space distributed.
KeyboardNavigationOperationRepresents an operation that the user is trying to accomplish through a specific input mechanism.
LanguageDirectionIndicates the directionality of the element's text. The value cascades to child elements.
LengthUnitDescribes how to interpret a Length value.
LibraryVisibilityControls the visibility of the UxmlElement in the UI Builder Library projects tab.
LineCapCap types for the beginning and end of paths (see Painter2D.lineCap).
LineJoinJoin types connecting two sub-paths (see Painter2D.lineJoin).
ListViewReorderModeOptions to change the drag-and-drop mode for items in the ListView.
MouseButtonEnumerates the mouse buttons to identify specific mouse button interactions.
OverflowDefines what should happened if content overflows an element bounds.
OverflowClipBoxBoxes against which the VisualElement content is clipped.
PanelRenderModeDetermines how a panel is rendered.
PanelScaleModeOptions that specify how elements in the panel scale when the screen size changes. See PanelSettings.scaleMode.
PanelScreenMatchModeOptions that specify how to scale the panel area when the aspect ratio of the current screen resolution does not match the reference resolution. See PanelSettings.screenMatchMode.
PenButtonDescribes a PenButton. Based on W3 conventions: https://www.w3.org/TRpointerevents2#the-buttons-property.
PickingModeDescribes the picking behavior. See VisualElement.pickingMode.
PivotEnum value used to specify the origin point of a UIDocument.
PivotReferenceSizeEnum value used to specify the size used to compute the Pivot position.
PositionDefines how the position values are interpreted by the layout engine.
PropagationPhaseThe propagation phases of an event.
RenderTypeWhat kind of geometry a DrawData represents.
RepeatDefines how the background is repeated.
ScrollerVisibilityOptions for controlling the visibility of scroll bars in the ScrollView.
ScrollViewModeConfigurations of the ScrollView to influence the layout of its contents and how scrollbars appear. ScrollView.mode
SelectionTypeControls how many items can be selected at once.
SliceTypeThe slice type determines whether the center of the image is scaled or tiled.
SliderDirectionThis is the direction of the Slider and SliderInt.
SortDirectionThe sort direction.
StyleKeywordKeyword that can be used on any style value types.
TextAutoSizeModeDefines how a text element adapts its
font-size
.
TextOverflowSpecifies how the text Element treats hidden overflow content.
TextOverflowPositionSpecifies which part of the text the Element replaces with an ellipsis when textOverflow is set to TextOverflow.Ellipsis.
TextureOptionsFlags describing how a texture must be used in the context of a draw command.
TextureSlotCountThe number of textures that UI Toolkit can bind simultaneously to the shader to reduce draw calls.
TimeUnitDescribes how to interpret a TimeValue.
TransformOriginOffsetSpecifies the alignment keywords for TransformOrigin.
TrickleDownUse this enum to specify during which propagation phase the event handler is executed.
TwoPaneSplitViewOrientationDetermines the orientation of the two resizable panes.
UsageHintsOffers a set of options that describe the intended usage patterns of a VisualElement. These options serve as guidance for optimizations. You can set multiple usage hints on an element. For example, if both position and color change, you can set both UsageHints.DynamicTransform and UsageHints.DynamicColor.
VersionChangeTypeValue used to signify some changes in the VisualElement
VisibilityStyle value that specifies whether or not a VisualElement is visible.
VisualElementClearOptionsIndicates options for clearing a VisualElement's children. For more information, refer to VisualElement.Clear.
WhiteSpaceControls how whitespace and line breaks within an element's text are handled, similar to the CSS white-space property. Unlike the CSS property, only trailing whitespaces are collapsed, and whitespaces within the text are preserved. See white-space
WorldSpaceSizeModeAn enum describing how the world-space UIDocument will be sized.
WrapBy default, items will all try to fit onto one line. You can change that and allow the items to wrap as needed with this property.

Interfaces

Interface

Description

IBindableInterface for all bindable fields.
IBindingBase interface for Binding objects.
IChangeEventBase interface for ChangeEvent.
ICommandEventInterface for Command events.
ICustomStyleThis interface exposes methods to read custom style properties applied from USS files to visual elements.
IDataSourceProviderBinding types deriving from Binding can implement this interface to gain an additional layer of data source and data source path. These will be used by the binding system to compute the final BindingContext.dataSource and BindingContext.dataSourcePath that will be passed to the BindingContext during the binding update.
IDataSourceViewHashProviderDefines a component as a data source view.
IDebugPanelChangeReceiverImplement this to receive callbacks for visual element changes. This interface is exclusively available in development builds and the Editor, as it serves as a debug feature that complements the profiling of an application.
IDragAndDropEventInterface for drag and drop events.
IEventHandlerInterface for class capable of handling events.
IExperimentalFeaturesGive access to UIElement experimental features.
IFocusEventInterface for focus events.
IFocusRingInterface for classes implementing focus rings.
IKeyboardEventThis interface describes the data used by keyboard events.
IManipulatorInterface for Manipulator objects.
IMixedValueSupportAn interface that allows value fields to visually represent a mixed value.
IMouseCaptureEventInterface for mouse capture events.
IMouseEventInterface for mouse events.
INavigationEventInterface for all navigation events.
INotifyBindablePropertyChangedDefines a component that notifies when a property has changed.
INotifyValueChanged<T>Interface for controls that hold a value and can notify when it is changed by user input.
IPanelInterface for classes implementing UI panels.
IPanelChangedEventInterface for panel change events.
IPanelComponentInterface for UI panel components, PanelRenderer and UIDocument.
IPointerCaptureEventInterface for pointer capture events and mouse capture events.
IPointerEventThis interface describes properties available to pointer events.
IResolvedStyleStyle values after layout pass.
IRuntimePanelInterface for classes implementing UI runtime panels.
IStyleThis interface provides access to a VisualElement inline style data.
IStyleValue<T>Base interface for the style properties.
ITextEditionInterface to access a TextElement edition capabilities This interface is not meant to be implemented explicitly as its declaration might change in the future.
ITextElementExperimentalFeaturesGive access to TextElement experimental features.
ITextSelectionInterface to access a TextElement selection and cursor information This interface is not meant to be implemented explicitly as its declaration might change in the future.
ITransformThis interface provides access to a VisualElement transform data.
ITransitionAnimationsProvides helper methods to create transition animations for VisualElement style values
ITransitionEventInterface for all transition events.
IValueAnimationBase interface for transition animations.
IValueField<T>Base interface for UIElements text value fields.
IVisualElementScheduledItemRepresents a scheduled task created with a VisualElement's schedule interface.
IVisualElementSchedulerA scheduler provides the functionality to queue actions to run at a specific time or duration.

Delegates

Delegate

Description

DynamicAtlasCustomFilterDelegate that can be used as a custom filter for the dynamic atlas.
EventCallback<TEventType, TCallbackArgs>Defines the structure of a callback that can be registered onto an element for an event type, along with a custom user defined argument.
EventCallback<TEventType>Defines the structure of a callback that can be registered onto an element for an event type
MeshModificationCallbackCallback signature for modifying generated meshes on a VisualElement.