Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.UIElementsModule

The UIElements module implements the UIElements retained mode UI framework.
Read time 27 minutesLast updated 7 hours ago

Definition

  • Type: Module

Classes

Class

Description

AbstractGenericMenuBase class for menu functionality.
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.
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.
CallbackEventHandlerInterface for classes capable of having callbacks to handle events.
ChangeEvent<T>Sends an event when a value in a field changes.
ClickEventThis event is sent when the left mouse button is clicked.
CommandEventBase<T>Base class for command events.
ComponentBindingDispatcherDispatches component-targeted data bindings (
${component:Type}.field
) into the live component data of an element. The generated
__GetComponentBindingDispatcher
hook returns ComponentBindingDispatcher<T>.Instance, which is held once per component type, so binding updates dispatch without reflection.
ComponentBindingDispatcher<T>The shared ComponentBindingDispatcher for component type
T
. Generated code references ComponentBindingDispatcher<T>.Instance from the component's
__GetComponentBindingDispatcher
hook, closing the component type statically.
ContextClickEventThe event sent when clicking the right mouse button.
ContextualMenuManagerUse this class to display a contextual menu.
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.
DetachFromPanelEventEvent sent just before an element is detached from its parent, if the parent is the descendant of a panel.
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.
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.
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.
FilterFunctionDefinitionRepresents a filter function definition that holds the parameters and effects of a filter.
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.
GenerateVisualContentAttributeDeclares a static method of a VisualElementComponentAttribute struct as a painter that contributes to the owner element's VisualElement.generateVisualContent.
GeometryChangedEventThis event is sent after layout calculations, when the position or the dimension of an element changes.
IBindingExtensionsExtensions methods to provide additional IBindable functionality.
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.
KeyboardEventBase<T>This is the base class for keyboard events.
KeyDownEventThis event is sent when a key is pressed.
KeyUpEventThis event is sent when a pressed key is released.
ManipulatorBase class for all Manipulator implementations.
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.
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.
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.
OnComponentAddedAttributeDeclares a static method of a VisualElementComponentAttribute struct that runs once, right after the component is added to an element.
OnComponentChangedAttributeDeclares a static method of a VisualElementComponentAttribute struct as the handler that runs when one of the component's fields changes on an element.
OnComponentRemovedAttributeDeclares a static method of a VisualElementComponentAttribute struct that runs when VisualElement.RemoveComponent removes the component from an element.
Painter2DObject to draw 2D vector graphics.
PanelChangedEventBase<T>Abstract base class for events notifying of a panel change.
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.
RegisterCallbackAttributeDeclares a static method of a component struct as an event handler for the element the component is attached to.
RegisterUxmlCacheAttributeAttribute allowing the UXML registry to more efficiently retrieve the UXML description data.
ReleaseComponentResourcesAttributeDeclares a static method of a VisualElementComponentAttribute struct that frees the resources the component allocated. It runs exactly once per component instance, on every path that releases the component, on the main thread.
RequiresComponentOfTypeAttributeDeclares that a component needs another component type on the same element. When the declaring component is added to an element, from code or from UXML, the required components are added first, in declaration order. A required component that is already attached keeps its values. A required component that is missing is added with its default values.
RequiresElementOfTypeAttributeRestricts a VisualElementComponentAttribute component to a specific VisualElement subclass (or any class derived from it). When present, every
[RegisterCallback]
static method on the component may declare its
owner
parameter as the constrained type instead of plain VisualElement, and the component picker filters by the constraint.
RuntimePanelUtilsA collection of static methods that provide simple World, Screen, and Panel coordinate transformations.
StylePropertyAttributeBinds a field or property of a component struct to a custom USS property.
StyleSheetStyle sheets are applied to visual elements in order to control the layout and visual appearance of the user interface.
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.
ThemeStyleSheetRepresents a style sheet that's assembled from other style sheets.
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.
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.
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.
UxmlComponentSerializedDataSerialized data of a component authored on a VisualElement in UXML. Generated for VisualElementComponentAttribute structs; an element's own data derives from UxmlSerializedData directly.
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.
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.
VisualElementCaptureExtensionsUse these extension methods to capture the rendered visual content of a VisualElement into a RenderTexture.
VisualElementComponentAttributeDeclares a struct as a UI Toolkit component: a reusable piece of data and behavior that you can attach to any VisualElement.
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.
AnimationIterationCountRepresents the number of times an animation repeats, used by the animation-iteration-count style property. The count is either a finite number of iterations or AnimationIterationCount.Infinite.
AuthoringIdPathStruct representing a path of authoring IDs used to identify VisualElements.
BackgroundDescribes a VisualElement background.
BackgroundGradientColor gradient that can be used as a Background, mirroring the CSS linear-gradient() / radial-gradient() functions.
BackgroundGradientStopA single color stop in a BackgroundGradient.
BackgroundPositionScript interface for VisualElement background-position style property IStyle.backgroundPositionX and IStyle.backgroundPositionY.
BackgroundRepeatScript interface for VisualElement background-repeat style property IStyle.backgroundRepeat.
BackgroundSizeScript interface for VisualElement background-size style property IStyle.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.
BoxShadowScript interface for VisualElement box-shadow style property IStyle.boxShadow.
CreationContextThis structure holds information used during UXML template instantiation.
CursorScript interface for VisualElement cursor style property IStyle.cursor.
CurvatureBi-axial curvature applied to a visual element's generated mesh. The element bends around its X axis by Curvature.x (curving the vertical extent) and around its Y axis by Curvature.y (curving the horizontal extent); the sign of each angle selects concave vs. convex.
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.
FilterParameterWriterWrites the parameters of a filter pass for one element, by shader property.
FilterPassContextThe context of the filter.
FontDefinitionDescribes a VisualElement font.
GridLineA single placement value for
grid-column-start
,
grid-column-end
,
grid-row-start
and
grid-row-end
:
auto
, an explicit line (a non-zero integer; negative lines count back from the end edge of the explicit grid), or
span <n>
(n >= 1).
GridTrackSizeThe size of a single CSS Grid track (a column or a row), as used by
grid-template-columns
,
grid-template-rows
,
grid-auto-columns
and
grid-auto-rows
.
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.
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.
StyleBoxShadowStyle value that can be either a BoxShadow 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.
StyleCurvatureRepresents a style value that can be either a Curvature 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.
StyleGridLineStyle value + keyword wrapper for a GridLine (grid-column-start / -end, grid-row-start / -end).
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.
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.
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.
AngleUnitUnit of measurement used to express the value of an Angle.
AnimationDirectionDetermines whether a USS animation plays forward, backward, or alternates direction across iterations.
AnimationPlayStateDetermines whether a USS animation is running or paused.
ArcDirectionDirection to use when defining an arc (see Painter2D.Arc).
BackgroundGradientShapeShape of a radial gradient.
BackgroundGradientSizeSizing rule of a radial gradient, mirroring the CSS radial-gradient extent keywords.
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.
BindingStatusStatus to report the result of a binding update.
BindingUpdateSkipConditionsConditions on the target element in which a binding skips its updates.
BindingUpdateTriggerOption to tell a binding when to update.
CallbackOptionsExtra properties that can be used in CallbackEventHandler.RegisterCallback.
ContextTypeDescribes in which context a VisualElement hierarchy is being run.
DisplayStyleDefines how an element is displayed in the layout.
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.
FilterTextureBudgetOptions for the area of temporary textures that UI Toolkit can use at the same time to apply filters.
FlexDirectionDefines the main-axis of the flex layout.
GradientTypeSpecifies the type of gradient to use for color interpolation.
GridAutoFlowControls how the auto-placement algorithm works for a CSS Grid container, specifying exactly how auto-placed items get flowed into the grid.
GridLinePlacementHow a GridLine places one edge of a CSS Grid item.
GridTrackSizeUnitUnit for a single GridTrackSize sizing value.
JustifyDefines the alignment along the main axis, how is extra space distributed.
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).
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.
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.
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.
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.
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.
IVisualElementComponentThe interface for all UI Toolkit component structs.
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

ComponentResourceReleaseHandler<T>The signature of a [ReleaseComponentResources] method: it receives the released component's own data by reference and frees what that component allocated.
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.