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 |
|---|---|
| AbstractGenericMenu | Base class for menu functionality. |
| AlignmentUtils | Static class containing utility methods for aligning visual elements. |
| AttachToPanelEvent | Event sent after an element is added to an element that is a descendant of a panel. |
| BackgroundPropertyHelper | Helper to convert between background properties and ScaleMode. |
| BindableElement | Element that can be bound to a property. For more information, refer to UXML element BindableElement. |
| Binding | Base class for defining a binding. |
| BlurEvent | Event sent immediately after an element has lost focus. This event trickles down and does not bubbles up. |
| CallbackEventHandler | Interface for classes capable of having callbacks to handle events. |
| ChangeEvent<T> | Sends an event when a value in a field changes. |
| ClickEvent | This event is sent when the left mouse button is clicked. |
| CommandEventBase<T> | Base class for command events. |
| ComponentBindingDispatcher | Dispatches component-targeted data bindings ( |
| ComponentBindingDispatcher<T> | The shared ComponentBindingDispatcher for component type |
| ContextClickEvent | The event sent when clicking the right mouse button. |
| ContextualMenuManager | Use this class to display a contextual menu. |
| ContextualMenuPopulateEvent | The event sent when a contextual menu requires menu items. The event trickles down and bubbles up. |
| ConverterGroup | A type to hold information about a conversion registry used locally on bindings. |
| ConverterGroups | Provides a set of static methods to register and use converter groups and registers a set of global converters. ConverterGroup. DataBinding. |
| CustomBinding | Base class for general purpose binding extensibility. |
| CustomStyleResolvedEvent | Event sent after the custom style properties of a VisualElement have been resolved. |
| DataBinding | Binding type that enables data synchronization between a property of a data source and a property of a VisualElement. |
| DetachFromPanelEvent | Event 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. |
| DragEnterEvent | Use 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. |
| DragExitedEvent | The event sent to a dragged element when the drag and drop process ends. |
| DragLeaveEvent | Use 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. |
| DragPerformEvent | The event sent to an element when another element is dragged and dropped on the element. |
| DragUpdatedEvent | The event sent when the element being dragged enters a possible drop target. |
| DropdownMenu | Represents a dropdown menu, similar to the menus seen in most Operating Systems (OS) and across the Unity Editor. |
| DropdownMenuAction | Represents a menu action item. |
| DropdownMenuEventInfo | Provides information about the event that caused the dropdown menu to display. |
| DropdownMenuItem | Represents an item in a dropdown menu. |
| DropdownMenuSeparator | Provides a separator menu item. |
| DynamicAtlasSettings | Contains the settings used by the dynamic atlas system. |
| Easing | A collection of easing curves to be used with ValueAnimations. |
| EventArg | Base class for all instances of EventArg<TArg>. |
| EventArg<TArg> | A reusable identifier for an event callback argument of type |
| EventBase | The 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. |
| EventCallback | A static class that allows creation of EventCallbackDefinition and EventCallbackDefinition<TElement> instances. |
| EventDispatcher | Dispatches events to a IPanel. |
| EventInterestAttribute | Optional 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. |
| ExecuteCommandEvent | This event is sent by the Editor when an element in the panel should execute a command. |
| FilterFunctionDefinition | Represents a filter function definition that holds the parameters and effects of a filter. |
| Focusable | Base class for objects that can get the focus. |
| FocusChangeDirection | Base class for defining in which direction the focus moves in a focus ring. |
| FocusController | Class in charge of managing the focus inside a Panel. |
| FocusEvent | Event 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. |
| FocusInEvent | Event sent immediately before an element gains focus. This event trickles down and bubbles up. |
| FocusOutEvent | Event sent immediately before an element loses focus. This event trickles down and bubbles up. |
| GenerateVisualContentAttribute | Declares a static method of a VisualElementComponentAttribute struct as a painter that contributes to the owner element's VisualElement.generateVisualContent. |
| GeometryChangedEvent | This event is sent after layout calculations, when the position or the dimension of an element changes. |
| IBindingExtensions | Extensions methods to provide additional IBindable functionality. |
| IMGUIContainer | Element that draws IMGUI content in the editor. For more information, refer to UXML element IMGUIContainer. |
| IMGUIEvent | Class used to send a IMGUI event that has no equivalent UIElements event. |
| ImmediateModeElement | VisualElement that can implement custom immediate mode rendering. |
| INotifyValueChangedExtensions | INotifyValueChangedExtensions is a set of extension methods useful for objects implementing INotifyValueChanged<T>. |
| InputEvent | Sends an event when text from a TextField changes. |
| KeyboardEventBase<T> | This is the base class for keyboard events. |
| KeyDownEvent | This event is sent when a key is pressed. |
| KeyUpEvent | This event is sent when a pressed key is released. |
| Manipulator | Base class for all Manipulator implementations. |
| MeshGenerationContext | Provides methods for generating a visual element's visual content during the VisualElement.generateVisualContent callback. |
| MeshWriteData | Represents the vertex and index data allocated for drawing the content of a VisualElement. |
| MouseCaptureController | Class that manages capturing mouse events. |
| MouseCaptureEvent | Event sent after a handler starts capturing the mouse. |
| MouseCaptureEventBase<T> | Event sent when the handler capturing the mouse changes. |
| MouseCaptureOutEvent | Event sent before a handler stops capturing the mouse. |
| MouseDownEvent | This event is sent when a mouse button is pressed. |
| MouseEnterEvent | Event sent when the mouse pointer enters an element or one of its descendent elements. The event trickles down but does not bubble up. |
| MouseEnterWindowEvent | Event 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. |
| MouseLeaveEvent | Event sent when the mouse pointer exits an element and all its descendent elements. The event trickles down but does not bubble up. |
| MouseLeaveWindowEvent | Event sent when the mouse pointer exits a window. The event bubbles up but does not trickle down. |
| MouseManipulator | MouseManipulators have a list of activation filters. |
| MouseMoveEvent | This event is sent when the mouse moves. |
| MouseOutEvent | Event sent when the mouse pointer exits an element. The event trickles down and bubbles up. |
| MouseOverEvent | Event sent when the mouse pointer enters an element. The event trickles down and bubbles up. |
| MouseUpEvent | This event is sent when a mouse button is released. |
| NavigationCancelEvent | Event sent when the user presses the cancel button. |
| NavigationEventBase<T> | Navigation events abstract base class. |
| NavigationMoveEvent | Event typically sent when the user presses the D-pad, moves a joystick or presses the arrow keys. |
| NavigationSubmitEvent | Event sent when the user presses the submit button. |
| OnComponentAddedAttribute | Declares a static method of a VisualElementComponentAttribute struct that runs once, right after the component is added to an element. |
| OnComponentChangedAttribute | Declares a static method of a VisualElementComponentAttribute struct as the handler that runs when one of the component's fields changes on an element. |
| OnComponentRemovedAttribute | Declares a static method of a VisualElementComponentAttribute struct that runs when VisualElement.RemoveComponent removes the component from an element. |
| Painter2D | Object to draw 2D vector graphics. |
| PanelChangedEventBase<T> | Abstract base class for events notifying of a panel change. |
| PanelInputConfiguration | Configures how input is routed to Panels in runtime. If no Input Configuration component is active, default configurations are used. |
| PanelRenderer | Defines a component that connects VisualElement to GameObject. |
| PanelSettings | Defines 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. |
| PanelTextSettings | Represents text rendering settings for a specific UI panel. PanelSettings.textSettings |
| PointerCancelEvent | This event is sent when pointer interaction is cancelled. |
| PointerCaptureEvent | Event sent when a pointer is captured by a VisualElement. |
| PointerCaptureEventBase<T> | Base class for pointer capture events and mouse capture events. |
| PointerCaptureHelper | A static class to capture and release pointers. |
| PointerCaptureOutEvent | Event sent when a VisualElement releases a pointer. |
| PointerDownEvent | Sends when a pointer is pressed inside a visual element. |
| PointerDownLinkTagEvent | This event is sent when a pointer is pressed on a Link tag. |
| PointerEnterEvent | This 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. |
| PointerId | A static class that holds pointer ID values. |
| PointerLeaveEvent | This 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. |
| PointerManipulator | PointerManipulators have a list of activation filters. |
| PointerMoveEvent | This event is sent when a pointer changes state. |
| PointerMoveLinkTagEvent | This event is sent when a pointer changes state on a link tag. |
| PointerOutEvent | This event is sent when a pointer exits an element. The event trickles down and bubbles up. |
| PointerOutLinkTagEvent | This event is sent when a pointer exits a link tag. |
| PointerOverEvent | This event is sent when a pointer enters an element. The event trickles down and bubbles up. |
| PointerOverLinkTagEvent | This event is sent when a pointer enters a link tag. |
| PointerType | A static class that holds pointer type values. |
| PointerUpEvent | This event is sent when a pointer's last pressed button is released. |
| PointerUpLinkTagEvent | This event is sent when a pointer's last pressed button is released on a link tag. |
| RegisterCallbackAttribute | Declares a static method of a component struct as an event handler for the element the component is attached to. |
| RegisterUxmlCacheAttribute | Attribute allowing the UXML registry to more efficiently retrieve the UXML description data. |
| ReleaseComponentResourcesAttribute | Declares 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. |
| RequiresComponentOfTypeAttribute | Declares 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. |
| RequiresElementOfTypeAttribute | Restricts a VisualElementComponentAttribute component to a specific VisualElement subclass (or any class derived from it). When present, every |
| RuntimePanelUtils | A collection of static methods that provide simple World, Screen, and Panel coordinate transformations. |
| StylePropertyAttribute | Binds a field or property of a component struct to a custom USS property. |
| StyleSheet | Style sheets are applied to visual elements in order to control the layout and visual appearance of the user interface. |
| TemplateContainer | Represents the root VisualElement of UXML file. |
| TextElement | Use 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. |
| ThemeStyleSheet | Represents a style sheet that's assembled from other style sheets. |
| TooltipEvent | Event sent to find the first VisualElement that displays a tooltip. |
| TransitionCancelEvent | Event sent when a transition is canceled. |
| TransitionEndEvent | Event 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. |
| TransitionRunEvent | Event sent when a transition is created (i.e. added to the set of running transitions). |
| TransitionStartEvent | Event sent when a transition's delay phase ends. |
| UIAnimationClip | An asset used to animate VisualElement hierarchies. |
| UIDocument | Defines a Component that connects VisualElements to GameObjects. |
| UIRenderer | A 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. |
| UQuery | UQuery 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. |
| UQueryExtensions | UQuery 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. |
| UxmlAttributeAttribute | Declares that a field or property is associated with a UXML attribute. Convenience overload, shorthand for |
| UxmlChildElementDescription | Describe an allowed child element for an element. |
| UxmlComponentSerializedData | Serialized data of a component authored on a VisualElement in UXML. Generated for VisualElementComponentAttribute structs; an element's own data derives from UxmlSerializedData directly. |
| UxmlCreateInstanceMethodAttribute | Declares a method to create instances in place of the default constructor. |
| UxmlDescriptionCache | Contains pre-processed information about UXML attribute descriptions to avoid relying on reflection. |
| UxmlElementAttribute | Declares a custom control. |
| UxmlEnumeration | Restricts the value of an attribute to be taken from a list of values. |
| UxmlIgnoreAttribute | Used for fields that are serialized but do not come from UXML data, such as uxmlAssetId. |
| UxmlObjectAttribute | Declares 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. |
| UxmlObjectReferenceAttribute | Declares that a field or property is associated with nested UXML objects. |
| UxmlSerializedData | Generates an instance of the declaring element when the UxmlElementAttribute is used in a custom control. |
| UxmlSerializedDataUtility | This is used by the code generator when a custom control is using the UxmlElementAttribute. |
| UxmlTypeReferenceAttribute | Provides information about the expected type when applied to a Type field or property that has the UxmlAttributeAttribute attribute. |
| UxmlTypeRestriction | Base class to restricts the value of an attribute. |
| UxmlValueBounds | Restricts the value of an attribute to be within the specified bounds. |
| UxmlValueMatches | Restricts the value of an attribute to match a regular expression. |
| ValidateCommandEvent | This 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. |
| VectorImage | An asset that represents a vector image. |
| VisualElement | Base class for objects that are part of the UIElements visual tree. |
| VisualElementAssetReferenceTable | A reference table to map authoring id paths to VisualElements. |
| VisualElementCaptureExtensions | Use these extension methods to capture the rendered visual content of a VisualElement into a RenderTexture. |
| VisualElementComponentAttribute | Declares a struct as a UI Toolkit component: a reusable piece of data and behavior that you can attach to any VisualElement. |
| VisualElementExtensions | VisualElementExtensions is a set of extension methods useful for VisualElement. |
| VisualElementFocusChangeDirection | Define focus change directions for the VisualElementFocusRing. |
| VisualElementFocusRing | Implementation of a linear focus ring. Elements are sorted according to their focusIndex. |
| VisualElementReference | Represents a reference to a VisualElement in a PanelRenderer. |
| VisualElementReference<T> | Represents a strongly-typed reference to a VisualElement in a PanelRenderer. |
| VisualTreeAsset | An instance of this class holds a tree of |
| WheelEvent | This event is sent when the mouse wheel moves. |
Structs
Struct | Description |
|---|---|
| Angle | Represents an angle value. |
| AnimationIterationCount | Represents 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. |
| AuthoringIdPath | Struct representing a path of authoring IDs used to identify VisualElements. |
| Background | Describes a VisualElement background. |
| BackgroundGradient | Color gradient that can be used as a Background, mirroring the CSS linear-gradient() / radial-gradient() functions. |
| BackgroundGradientStop | A single color stop in a BackgroundGradient. |
| BackgroundPosition | Script interface for VisualElement background-position style property IStyle.backgroundPositionX and IStyle.backgroundPositionY. |
| BackgroundRepeat | Script interface for VisualElement background-repeat style property IStyle.backgroundRepeat. |
| BackgroundSize | Script interface for VisualElement background-size style property IStyle.backgroundSize. |
| BindablePropertyChangedEventArgs | Provides information about the property that has changed. |
| BindingActivationContext | Contains information passed to binding instances during registration and deregistration. |
| BindingContext | Context object containing the necessary information to resolve a binding. |
| BindingId | Defines a binding property that serves as an identifier for the binding system. |
| BindingInfo | Provides information about a binding. |
| BindingResult | Provides information about the binding update. |
| BoxShadow | Script interface for VisualElement box-shadow style property IStyle.boxShadow. |
| CreationContext | This structure holds information used during UXML template instantiation. |
| Cursor | Script interface for VisualElement cursor style property IStyle.cursor. |
| Curvature | Bi-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. |
| DataSourceContext | Contains information about the data source and data source path of a binding. |
| DataSourceContextChanged | Contains information passed to binding instances when the resolved data source context has changed. |
| DrawData | Mutable view over one generated mesh belonging to the current element. |
| DrawDataEnumerable | Iterable view over the draws of a MeshModificationContext. |
| DrawDataEnumerator | Enumerator over the draws of a MeshModificationContext. |
| EasingFunction | Determines how intermediate values are calculated for a transition. |
| EventCallbackDefinition | An 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. |
| EventCallbackGroup | An 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. |
| EventDispatcherGate | Gates control when the dispatcher processes events. |
| FillGradient | Describes 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. |
| FilterFunction | Represents a filter function that holds the definition and parameters of a filter. |
| FilterParameter | Represents a filter parameter for a FilterFunctionDefinition. |
| FilterParameterDeclaration | The filter parameter declaration for a FilterFunctionDefinition. |
| FilterParameterWriter | Writes the parameters of a filter pass for one element, by shader property. |
| FilterPassContext | The context of the filter. |
| FontDefinition | Describes a VisualElement font. |
| GridLine | A single placement value for |
| GridTrackSize | The size of a single CSS Grid track (a column or a row), as used by |
| Length | Represents a distance value. |
| ManipulatorActivationFilter | Defines conditions for manipulators to respond to specific events. |
| MaterialDefinition | Describes a VisualElement material. |
| MeshGenerationNode | Contains a part of the draw sequence of a VisualElement. You can use it in a job to add nested draw calls. |
| MeshModificationContext | Per-invocation context passed to a MeshModificationCallback. |
| ParameterBinding | Represents a binding of a parameter index to a post-processing material property. |
| PostProcessingMargins | The post-processing margins required by a FilterFunction. |
| PostProcessingPass | Represents a post-processing effect that can be applied to a visual element. This is used as part of a FilterFunctionDefinition. |
| Ratio | Represents a ratio, used for Aspect Ratio style property. |
| Rotate | Provides rotation information for visual elements that rotates around the TransformOrigin. Positive values represent clockwise rotation. |
| Scale | Represents the scale applied as element transformations. The center point that doesn't move when the scaling is applied is the TransformOrigin. |
| StyleBackground | Style value that can be either a Background or a StyleKeyword. |
| StyleBackgroundPosition | Represents a style value that can be either a BackgroundPosition or a StyleKeyword. |
| StyleBackgroundRepeat | Represents a style value that can be either a BackgroundRepeat or a StyleKeyword. |
| StyleBackgroundSize | Represents a style value that can be either a BackgroundSize or a StyleKeyword. |
| StyleBoxShadow | Style value that can be either a BoxShadow or a StyleKeyword. |
| StyleColor | Style value that can be either a Color or a StyleKeyword. |
| StyleCursor | Style value that can be either a Cursor or a StyleKeyword. |
| StyleCurvature | Represents 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. |
| StyleFloat | Style value that can be either a float or a StyleKeyword. |
| StyleFont | Style value that can be either a Font or a StyleKeyword. |
| StyleFontDefinition | Style value that can be either a FontDefinition or a StyleKeyword. |
| StyleGridLine | Style value + keyword wrapper for a GridLine (grid-column-start / -end, grid-row-start / -end). |
| StyleInt | Style value that can be either an integer or a StyleKeyword. |
| StyleLength | Style value that can be either a Length or a StyleKeyword. |
| StyleList<T> | Style value that can be either a list or a StyleKeyword. |
| StyleMaterialDefinition | Style value that can be either a Material or a StyleKeyword. |
| StylePropertyName | Defines the name of a style property. |
| StylePropertyNameCollection | Collection of StylePropertyName. |
| StyleRatio | Represents a ratio value, denotes the proportion between two unitless values. |
| StyleRotate | Represents a style value that can be either a Rotate or a StyleKeyword. |
| StyleScale | Style value that can be either a Scale or a StyleKeyword. |
| StyleTextAutoSize | Style value that can be either a TextAutoSize or a StyleKeyword. |
| StyleTextShadow | Style value that can be either a TextShadow or a StyleKeyword. |
| StyleTransformOrigin | Represents a style value that can be either a TransformOrigin or a StyleKeyword. |
| StyleTranslate | Style value that can be either a Translate or a StyleKeyword. |
| StyleUIAnimationClip | Style value that can be either a UIAnimationClip or a StyleKeyword. |
| StyleValues | Container object used to animate multiple style values at once. |
| TempMeshAllocator | Used in jobs to allocate UI Toolkit temporary meshes. |
| TextAutoSize | Setting controls automatic font‑size adjustment. |
| TextShadow | Script interface for VisualElement text-shadow style property IStyle.textShadow. |
| TimerState | Contains timing information of IVisualElementScheduler events. |
| TimeValue | Represents a time value. |
| TransformOrigin | Represents the point of origin where the transformations (Scale, Translate, and Rotate) are applied. |
| Translate | Represents 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. |
| UIMesh | Bundle of vertex, index, and optional extras slices passed to MeshGenerationContext.DrawMesh. |
| UniqueStyleString | A 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. |
| UxmlAttributeNames | Holds the description data of a UXML attribute. |
| Vertex | Represents a vertex of geometry for drawing content of VisualElement. |
| VisualElementStyleSheetSet | This structure manipulates the set of StyleSheet objects attached to the owner VisualElement. |
Enums
Enum | Description |
|---|---|
| AddressMode | Specifies how the gradient is sampled when UV coordinates are outside the [0, 1] range. |
| Align | Defines the alignment behavior along an axis. |
| AngleUnit | Unit of measurement used to express the value of an Angle. |
| AnimationDirection | Determines whether a USS animation plays forward, backward, or alternates direction across iterations. |
| AnimationPlayState | Determines whether a USS animation is running or paused. |
| ArcDirection | Direction to use when defining an arc (see Painter2D.Arc). |
| BackgroundGradientShape | Shape of a radial gradient. |
| BackgroundGradientSize | Sizing rule of a radial gradient, mirroring the CSS radial-gradient extent keywords. |
| BackgroundPositionKeyword | Defines the position of the background. |
| BackgroundSizeType | Defines the size of the background. |
| BindingLogLevel | Options to change the log level for warnings that occur during the update of data bindings. |
| BindingMode | Binding mode to control how a binding is updated. |
| BindingStatus | Status to report the result of a binding update. |
| BindingUpdateSkipConditions | Conditions on the target element in which a binding skips its updates. |
| BindingUpdateTrigger | Option to tell a binding when to update. |
| CallbackOptions | Extra properties that can be used in CallbackEventHandler.RegisterCallback. |
| ContextType | Describes in which context a VisualElement hierarchy is being run. |
| DisplayStyle | Defines how an element is displayed in the layout. |
| DrawPhase | Classifies the visual phase a draw belongs to in element rendering. |
| DropdownMenuSizeMode | Mode used to calculate the width of a dropdown. |
| DynamicAtlasFilters | Options to enable or disable filters for the dynamic atlas. |
| EasingMode | Represents a mathematical function that describes the rate at which a numerical value changes. |
| EditorTextRenderingMode | Defines how the editor rendering the text by default |
| EventInterestOptions | Options used as arguments for EventInterestAttribute when the affected method treats events in a general, non type-specific manner. |
| ExtraVertexChannels | Optional per-vertex channels that a UI Toolkit panel can opt into for use by custom shaders. |
| FillRule | The fill rule to use when filling shapes with Painter2D.Fill. |
| FilterFunctionType | The filter function type for a FilterFunction . |
| FilterParameterType | The type of a filter parameter. |
| FilterTextureBudget | Options for the area of temporary textures that UI Toolkit can use at the same time to apply filters. |
| FlexDirection | Defines the main-axis of the flex layout. |
| GradientType | Specifies the type of gradient to use for color interpolation. |
| GridAutoFlow | Controls how the auto-placement algorithm works for a CSS Grid container, specifying exactly how auto-placed items get flowed into the grid. |
| GridLinePlacement | How a GridLine places one edge of a CSS Grid item. |
| GridTrackSizeUnit | Unit for a single GridTrackSize sizing value. |
| Justify | Defines the alignment along the main axis, how is extra space distributed. |
| LanguageDirection | Indicates the directionality of the element's text. The value cascades to child elements. |
| LengthUnit | Describes how to interpret a Length value. |
| LibraryVisibility | Controls the visibility of the UxmlElement in the UI Builder Library projects tab. |
| LineCap | Cap types for the beginning and end of paths (see Painter2D.lineCap). |
| LineJoin | Join types connecting two sub-paths (see Painter2D.lineJoin). |
| MouseButton | Enumerates the mouse buttons to identify specific mouse button interactions. |
| Overflow | Defines what should happened if content overflows an element bounds. |
| OverflowClipBox | Boxes against which the VisualElement content is clipped. |
| PanelRenderMode | Determines how a panel is rendered. |
| PanelScaleMode | Options that specify how elements in the panel scale when the screen size changes. See PanelSettings.scaleMode. |
| PanelScreenMatchMode | Options 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. |
| PenButton | Describes a PenButton. Based on W3 conventions: https://www.w3.org/TRpointerevents2#the-buttons-property. |
| PickingMode | Describes the picking behavior. See VisualElement.pickingMode. |
| Pivot | Enum value used to specify the origin point of a UIDocument. |
| PivotReferenceSize | Enum value used to specify the size used to compute the Pivot position. |
| Position | Defines how the position values are interpreted by the layout engine. |
| PropagationPhase | The propagation phases of an event. |
| RenderType | What kind of geometry a DrawData represents. |
| Repeat | Defines how the background is repeated. |
| SelectionType | Controls how many items can be selected at once. |
| SliceType | The slice type determines whether the center of the image is scaled or tiled. |
| SliderDirection | This is the direction of the Slider and SliderInt. |
| StyleKeyword | Keyword that can be used on any style value types. |
| TextAutoSizeMode | Defines how a text element adapts its |
| TextOverflow | Specifies how the text Element treats hidden overflow content. |
| TextOverflowPosition | Specifies which part of the text the Element replaces with an ellipsis when textOverflow is set to TextOverflow.Ellipsis. |
| TextureOptions | Flags describing how a texture must be used in the context of a draw command. |
| TextureSlotCount | The number of textures that UI Toolkit can bind simultaneously to the shader to reduce draw calls. |
| TimeUnit | Describes how to interpret a TimeValue. |
| TransformOriginOffset | Specifies the alignment keywords for TransformOrigin. |
| TrickleDown | Use this enum to specify during which propagation phase the event handler is executed. |
| UsageHints | Offers 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. |
| VersionChangeType | Value used to signify some changes in the VisualElement |
| Visibility | Style value that specifies whether or not a VisualElement is visible. |
| VisualElementClearOptions | Indicates options for clearing a VisualElement's children. For more information, refer to VisualElement.Clear. |
| WhiteSpace | Controls 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 |
| WorldSpaceSizeMode | An enum describing how the world-space UIDocument will be sized. |
| Wrap | By 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 |
|---|---|
| IBindable | Interface for all bindable fields. |
| IBinding | Base interface for Binding objects. |
| IChangeEvent | Base interface for ChangeEvent. |
| ICommandEvent | Interface for Command events. |
| ICustomStyle | This interface exposes methods to read custom style properties applied from USS files to visual elements. |
| IDataSourceProvider | Binding 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. |
| IDataSourceViewHashProvider | Defines a component as a data source view. |
| IDebugPanelChangeReceiver | Implement 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. |
| IDragAndDropEvent | Interface for drag and drop events. |
| IEventHandler | Interface for class capable of handling events. |
| IExperimentalFeatures | Give access to UIElement experimental features. |
| IFocusEvent | Interface for focus events. |
| IFocusRing | Interface for classes implementing focus rings. |
| IKeyboardEvent | This interface describes the data used by keyboard events. |
| IManipulator | Interface for Manipulator objects. |
| IMouseCaptureEvent | Interface for mouse capture events. |
| IMouseEvent | Interface for mouse events. |
| INavigationEvent | Interface for all navigation events. |
| INotifyBindablePropertyChanged | Defines 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. |
| IPanel | Interface for classes implementing UI panels. |
| IPanelChangedEvent | Interface for panel change events. |
| IPanelComponent | Interface for UI panel components, PanelRenderer and UIDocument. |
| IPointerCaptureEvent | Interface for pointer capture events and mouse capture events. |
| IPointerEvent | This interface describes properties available to pointer events. |
| IResolvedStyle | Style values after layout pass. |
| IRuntimePanel | Interface for classes implementing UI runtime panels. |
| IStyle | This interface provides access to a VisualElement inline style data. |
| IStyleValue<T> | Base interface for the style properties. |
| ITextEdition | Interface to access a TextElement edition capabilities This interface is not meant to be implemented explicitly as its declaration might change in the future. |
| ITextElementExperimentalFeatures | Give access to TextElement experimental features. |
| ITextSelection | Interface 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. |
| ITransform | This interface provides access to a VisualElement transform data. |
| ITransitionAnimations | Provides helper methods to create transition animations for VisualElement style values |
| ITransitionEvent | Interface for all transition events. |
| IValueAnimation | Base interface for transition animations. |
| IVisualElementComponent | The interface for all UI Toolkit component structs. |
| IVisualElementScheduledItem | Represents a scheduled task created with a VisualElement's schedule interface. |
| IVisualElementScheduler | A 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. |
| DynamicAtlasCustomFilter | Delegate 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 |
| MeshModificationCallback | Callback signature for modifying generated meshes on a VisualElement. |