# VisualElement

> Base class for objects that are part of the UIElements visual tree.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Inherits from:** [Focusable](/engine/6000.7/script-reference/unityengine/uielements/focusable.md)
* **Implements:** [IEventHandler](/engine/6000.7/script-reference/unityengine/uielements/ieventhandler.md), [IResolvedStyle](/engine/6000.7/script-reference/unityengine/uielements/iresolvedstyle.md), [ITransform](/engine/6000.7/script-reference/unityengine/uielements/itransform.md), [ITransitionAnimations](/engine/6000.7/script-reference/unityengine/uielements/experimental/itransitionanimations.md), [IExperimentalFeatures](/engine/6000.7/script-reference/unityengine/uielements/iexperimentalfeatures.md), [IVisualElementScheduler](/engine/6000.7/script-reference/unityengine/uielements/ivisualelementscheduler.md), [ICustomStyle](/engine/6000.7/script-reference/unityengine/uielements/icustomstyle.md)

```csharp
[UxmlElement(libraryPath = "Containers")]
[Icon("UIToolkit/Icons/VisualElement.png")]
public class VisualElement : Focusable, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
```

## Remarks

VisualElement contains several features that are common to all controls in UIElements, such as layout, styling and event handling. Several other classes derive from it to implement custom rendering and define behaviour for controls.

To inherit from VisualElement and create a custom control, refer to [Creating a custom control](/engine/6000.7/manual/uitoolkits/uielements/uie-structure-ui/uie-uxml-examples/uib-structuring-ui-custom-elements.md).

Additional Resources: [UXML element VisualElement](/engine/6000.7/manual/uitoolkits/uielements/uie-element-ref/uie-uxml-element-visual-element.md), [VisualElementExtensions](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions.md), [UQueryExtensions](/engine/6000.7/script-reference/unityengine/uielements/uqueryextensions.md).

## Static Fields

| Value                                                                                                                | Description                                |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [disabledUssClassName](/engine/6000.7/script-reference/unityengine/uielements/visualelement/disabledussclassname.md) | USS class name of local disabled elements. |

## Constructors

| Constructor                                                                                     | Description                                           |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [VisualElement()](/engine/6000.7/script-reference/unityengine/uielements/visualelement/ctor.md) | Initializes and returns an instance of VisualElement. |

## Properties

| Property                                                                                                                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [childCount](/engine/6000.7/script-reference/unityengine/uielements/visualelement/childcount.md)                         | Number of child elements in this object's contentContainer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [contentContainer](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentcontainer.md)             | Logical container where child elements are added. If a child is added to this element, the child is added to this element's content container instead.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [contentRect](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentrect.md)                       | The rectangle of the content area of the element, in the local space of the element. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [customStyle](/engine/6000.7/script-reference/unityengine/uielements/visualelement/customstyle.md)                       | The custom style properties accessor of a [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) (Read Only).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [dataSource](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasource.md)                         | Assigns a data source to this VisualElement which overrides any inherited data source. This data source is inherited by all children.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [dataSourcePath](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasourcepath.md)                 | Path from the data source to the value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [dataSourceType](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasourcetype.md)                 | The possible type of data source assignable to this VisualElement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [disablePlayModeTint](/engine/6000.7/script-reference/unityengine/uielements/visualelement/disableplaymodetint.md)       | Play-mode tint is applied by default unless this is set to true. It's applied hierarchically to this [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) and to all its children that exist on an editor panel.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [enabledInHierarchy](/engine/6000.7/script-reference/unityengine/uielements/visualelement/enabledinhierarchy.md)         | Returns true if the [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) is enabled in its own hierarchy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [enabledSelf](/engine/6000.7/script-reference/unityengine/uielements/visualelement/enabledself.md)                       | Returns true if the [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) is enabled locally.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [experimental](/engine/6000.7/script-reference/unityengine/uielements/visualelement/experimental.md)                     | Returns the UIElements experimental interfaces.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [generateVisualContent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/generatevisualcontent.md)   | Delegate function to generate the visual content of a visual element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [hasActivePseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hasactivepseudostate.md)     | Returns true if this element matches the `:active` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [hasCheckedPseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hascheckedpseudostate.md)   | Returns true if this element matches the `:checked` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [hasDisabledPseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hasdisabledpseudostate.md) | Returns true if this element matches the `:disabled` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [hasEnabledPseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hasenabledpseudostate.md)   | Returns true if this element matches the `:enabled` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [hasFocusPseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hasfocuspseudostate.md)       | Returns true if this element matches the `:focus` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [hasHoverPseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hashoverpseudostate.md)       | Returns true if this element matches the `:hover` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [hasInactivePseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hasinactivepseudostate.md) | Returns true if this element matches the `:inactive` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [hasRootPseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hasrootpseudostate.md)         | Returns true if this element matches the `:root` pseudo-class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [hierarchy](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hierarchy-1.md)                         | Access to this element physical hierarchy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [this\[\]](/engine/6000.7/script-reference/unityengine/uielements/visualelement/item.md)                                 | Retrieves the child element at a specific index.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [languageDirection](/engine/6000.7/script-reference/unityengine/uielements/visualelement/languagedirection.md)           | Indicates the directionality of the element's text. The value will propagate to the element's children.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [layout](/engine/6000.7/script-reference/unityengine/uielements/visualelement/layout.md)                                 | The position and size of the VisualElement relative to its parent, as computed by the layout system. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [localBound](/engine/6000.7/script-reference/unityengine/uielements/visualelement/localbound.md)                         | Returns a [Rect](/engine/6000.7/script-reference/unityengine/rect.md) representing the Axis-aligned Bounding Box (AABB) after applying the transform, but before applying the layout translation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [name](/engine/6000.7/script-reference/unityengine/uielements/visualelement/name.md)                                     | The name of this VisualElement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [paddingRect](/engine/6000.7/script-reference/unityengine/uielements/visualelement/paddingrect.md)                       | The rectangle of the padding area of the element, in the local space of the element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [panel](/engine/6000.7/script-reference/unityengine/uielements/visualelement/panel.md)                                   | The panel onto which this VisualElement is attached.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [parent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/parent.md)                                 | The parent of this VisualElement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [pickingMode](/engine/6000.7/script-reference/unityengine/uielements/visualelement/pickingmode.md)                       | Determines if this element can be the target of pointer events or picked by [IPanel.Pick](/engine/6000.7/script-reference/unityengine/uielements/ipanel/pick.md) queries.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [resolvedStyle](/engine/6000.7/script-reference/unityengine/uielements/visualelement/resolvedstyle.md)                   | The final rendered style values of a visual element, as it's rendered in the current frame.(Read Only)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [resourcesReleased](/engine/6000.7/script-reference/unityengine/uielements/visualelement/resourcesreleased.md)           | Indicates if the element has released its reusable resources, in which case it can not be modified or added again.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [scaledPixelsPerPoint](/engine/6000.7/script-reference/unityengine/uielements/visualelement/scaledpixelsperpoint.md)     | Return the resulting scaling from the panel that considers the screen DPI and the customizable scaling factor, but not the transform scale of the element and its ancestors. See \_scaledPixelsPerPoint. This should only be called on elements that are part of a panel.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [schedule](/engine/6000.7/script-reference/unityengine/uielements/visualelement/schedule.md)                             | Retrieves the [IVisualElementScheduler](/engine/6000.7/script-reference/unityengine/uielements/ivisualelementscheduler.md) associated to this VisualElement. Use it to enqueue actions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [style](/engine/6000.7/script-reference/unityengine/uielements/visualelement/style.md)                                   | Sets the style values on a [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [styleSheets](/engine/6000.7/script-reference/unityengine/uielements/visualelement/stylesheets.md)                       | Returns a [VisualElementStyleSheetSet](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset.md) that manipulates style sheets attached to this element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [tooltip](/engine/6000.7/script-reference/unityengine/uielements/visualelement/tooltip.md)                               | Text to display inside an information box after the user hovers the element for a small amount of time. This is only supported in the Editor UI.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [usageHints](/engine/6000.7/script-reference/unityengine/uielements/visualelement/usagehints.md)                         | A combination of hint values that specify high-level intended usage patterns for the [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md). This property can only be set when the [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) is not yet part of a Panel. Once part of a Panel, this property becomes effectively read-only, and attempts to change it will throw an exception. The specification of proper [UsageHints](/engine/6000.7/script-reference/unityengine/uielements/usagehints.md) drives the system to make better decisions on how to process or accelerate certain operations based on the anticipated usage pattern. Note that those hints do not affect behavioral or visual results, but only affect the overall performance of the panel and the elements within. It's advised to always consider specifying the proper [UsageHints](/engine/6000.7/script-reference/unityengine/uielements/usagehints.md), but keep in mind that some [UsageHints](/engine/6000.7/script-reference/unityengine/uielements/usagehints.md) might be internally ignored under certain conditions (e.g. due to hardware limitations on the target platform). |
| [userData](/engine/6000.7/script-reference/unityengine/uielements/visualelement/userdata.md)                             | This property can be used to associate application-specific user data with this VisualElement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [viewDataKey](/engine/6000.7/script-reference/unityengine/uielements/visualelement/viewdatakey.md)                       | Used for view data persistence, such as tree expanded states, scroll position, or zoom level.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [visible](/engine/6000.7/script-reference/unityengine/uielements/visualelement/visible.md)                               | Indicates whether or not this element should be rendered.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [visualTreeAssetSource](/engine/6000.7/script-reference/unityengine/uielements/visualelement/visualtreeassetsource.md)   | Stores the asset reference, if the generated element is cloned from a VisualTreeAsset.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [worldBound](/engine/6000.7/script-reference/unityengine/uielements/visualelement/worldbound.md)                         | Returns the axis-aligned bounding box of the element in panel coordinates after the cumulative transform from the [IPanel](/engine/6000.7/script-reference/unityengine/uielements/ipanel.md) root.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [worldTransform](/engine/6000.7/script-reference/unityengine/uielements/visualelement/worldtransform.md)                 | Returns a matrix that cumulates the following transformations (in order):                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

## Methods

| Method                                                                                                                                       | Description                                                                                                                                                                                                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Add](/engine/6000.7/script-reference/unityengine/uielements/visualelement/add.md)                                                           | Adds an element to the [contentContainer](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentcontainer.md) of this element.                                                                                                                                          |
| [AddComponent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/addcomponent.md)                                         | Attaches a component of type `T` to this element.                                                                                                                                                                                                                                             |
| [AddMeshModifier](/engine/6000.7/script-reference/unityengine/uielements/visualelement/addmeshmodifier.md)                                   | Registers a modifier that runs after this element's mesh generation completes, before its vertex data is copied to the GPU.                                                                                                                                                                   |
| [AddToClassList](/engine/6000.7/script-reference/unityengine/uielements/visualelement/addtoclasslist.md)                                     | Adds multiple classes to the class list of the element in order to assign styles from USS. Note the class names are case-sensitive.                                                                                                                                                           |
| [BringToFront](/engine/6000.7/script-reference/unityengine/uielements/visualelement/bringtofront.md)                                         | Brings this element to the end of its parent children list. The element will be visually in front of any overlapping sibling elements.                                                                                                                                                        |
| [Children](/engine/6000.7/script-reference/unityengine/uielements/visualelement/children.md)                                                 | Returns the elements from its contentContainer.                                                                                                                                                                                                                                               |
| [ClassListContains](/engine/6000.7/script-reference/unityengine/uielements/visualelement/classlistcontains.md)                               | Searches for a class in the class list of this element.                                                                                                                                                                                                                                       |
| [Clear](/engine/6000.7/script-reference/unityengine/uielements/visualelement/clear.md)                                                       | Removes all child elements from this element's [\_contentContainer](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentcontainer.md).                                                                                                                                |
| [ClearBinding](/engine/6000.7/script-reference/unityengine/uielements/visualelement/clearbinding.md)                                         | Removes a binding from the element.                                                                                                                                                                                                                                                           |
| [ClearBindings](/engine/6000.7/script-reference/unityengine/uielements/visualelement/clearbindings.md)                                       | Removes all bindings from the element.                                                                                                                                                                                                                                                        |
| [ClearClassList](/engine/6000.7/script-reference/unityengine/uielements/visualelement/clearclasslist.md)                                     | Removes all classes from the class list of this element. [VisualElement.AddToClassList](/engine/6000.7/script-reference/unityengine/uielements/visualelement/addtoclasslist.md)                                                                                                               |
| [ClearMeshModifiers](/engine/6000.7/script-reference/unityengine/uielements/visualelement/clearmeshmodifiers.md)                             | Removes every modifier previously registered on this element. No-op if none are registered.                                                                                                                                                                                                   |
| [Contains](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contains.md)                                                 | Checks if this element is an ancestor of the specified child element.                                                                                                                                                                                                                         |
| [ContainsPoint](/engine/6000.7/script-reference/unityengine/uielements/visualelement/containspoint.md)                                       | Checks if the specified point intersects with this VisualElement's layout.                                                                                                                                                                                                                    |
| [ElementAt](/engine/6000.7/script-reference/unityengine/uielements/visualelement/elementat.md)                                               | Retrieves the child element at a specific index.                                                                                                                                                                                                                                              |
| [EnableInClassList](/engine/6000.7/script-reference/unityengine/uielements/visualelement/enableinclasslist.md)                               | Enables or disables the class with the given name.                                                                                                                                                                                                                                            |
| [FindAncestorUserData](/engine/6000.7/script-reference/unityengine/uielements/visualelement/findancestoruserdata.md)                         | Searches up the hierarchy of this VisualElement and retrieves stored userData, if any is found.                                                                                                                                                                                               |
| [FindCommonAncestor](/engine/6000.7/script-reference/unityengine/uielements/visualelement/findcommonancestor.md)                             | Finds the lowest common ancestor between two VisualElements inside the VisualTree hierarchy.                                                                                                                                                                                                  |
| [GetBinding](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getbinding.md)                                             | Gets the binding instance for the provided targeted property.                                                                                                                                                                                                                                 |
| [GetBindingInfos](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getbindinginfos.md)                                   | Gets information on all the bindings of the current element.                                                                                                                                                                                                                                  |
| [GetClasses](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getclasses.md)                                             | Retrieve the classes for this element.                                                                                                                                                                                                                                                        |
| [GetClassNames](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getclassnames.md)                                       | Retrieve the classes for this element.                                                                                                                                                                                                                                                        |
| [GetComponent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getcomponent.md)                                         | Returns a reference to the attached component of type `T`.                                                                                                                                                                                                                                    |
| [GetComponentRefOrNullRef](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getcomponentrefornullref.md)                 | Returns a reference to the component of type `T` attached to this element, or a null reference when the component is not attached. This method never adds a component.                                                                                                                        |
| [GetDataSourceContext](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getdatasourcecontext.md)                         | Queries the [\_dataSource](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasource.md) and [\_dataSourcePath](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasourcepath.md) of a binding object.                                            |
| [GetFirstAncestorOfType](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getfirstancestoroftype.md)                     | Walks up the hierarchy, starting from this element's parent, and returns the first VisualElement of this type                                                                                                                                                                                 |
| [GetFirstOfType](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getfirstoftype.md)                                     | Walks up the hierarchy, starting from this element, and returns the first VisualElement of this type                                                                                                                                                                                          |
| [GetHierarchicalDataSourceContext](/engine/6000.7/script-reference/unityengine/uielements/visualelement/gethierarchicaldatasourcecontext.md) | Queries the [\_dataSource](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasource.md) and [\_dataSourcePath](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasourcepath.md) inherited from the hierarchy.                                   |
| [GetOrAddComponent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/getoraddcomponent.md)                               | Returns a reference to the component of type `T` attached to this element. If the component is not attached yet, it is added first.                                                                                                                                                           |
| [HasBinding](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hasbinding.md)                                             | Allows to know if a target property has a binding associated to it.                                                                                                                                                                                                                           |
| [HasComponent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hascomponent.md)                                         | Checks whether a component of type `T` is attached to this element.                                                                                                                                                                                                                           |
| [IndexOf](/engine/6000.7/script-reference/unityengine/uielements/visualelement/indexof.md)                                                   | Retrieves the child index of the specified VisualElement.                                                                                                                                                                                                                                     |
| [Insert](/engine/6000.7/script-reference/unityengine/uielements/visualelement/insert.md)                                                     | Insert an element into this element's contentContainer                                                                                                                                                                                                                                        |
| [IsMarkedForRepaint](/engine/6000.7/script-reference/unityengine/uielements/visualelement/ismarkedforrepaint.md)                             | Checks if the [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) is marked dirty for repaint.                                                                                                                                                           |
| [MarkComponentDirty](/engine/6000.7/script-reference/unityengine/uielements/visualelement/markcomponentdirty.md)                             | Marks the attached component of type `T` as changed, so that its `[OnComponentChanged]` handler runs once during the next update.                                                                                                                                                             |
| [MarkDirtyRepaint](/engine/6000.7/script-reference/unityengine/uielements/visualelement/markdirtyrepaint.md)                                 | Marks that the [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) requires a repaint.                                                                                                                                                                   |
| [MarkDirtyStyles](/engine/6000.7/script-reference/unityengine/uielements/visualelement/markdirtystyles.md)                                   | Marks the element's resolved styles dirty so the next update re-resolves them, re-reading USS custom property values. The style counterpart of [VisualElement.MarkDirtyRepaint](/engine/6000.7/script-reference/unityengine/uielements/visualelement/markdirtyrepaint.md).                    |
| [NotifyComponentChanged](/engine/6000.7/script-reference/unityengine/uielements/visualelement/notifycomponentchanged.md)                     | Notifies the data binding system that a field of an attached component changed, so a binding targeting that field (for example `${component:Tooltip}.text`) can publish the new value.                                                                                                        |
| [PlaceBehind](/engine/6000.7/script-reference/unityengine/uielements/visualelement/placebehind.md)                                           | Places this element right before the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually behind of its sibling.                                                                                                      |
| [PlaceInFront](/engine/6000.7/script-reference/unityengine/uielements/visualelement/placeinfront.md)                                         | Places this element right after the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually in front of its sibling.                                                                                                     |
| [ReleaseResources](/engine/6000.7/script-reference/unityengine/uielements/visualelement/releaseresources.md)                                 | Releases reusable resources associated with this element and makes the element unusable.                                                                                                                                                                                                      |
| [Remove](/engine/6000.7/script-reference/unityengine/uielements/visualelement/remove.md)                                                     | Removes this child from the \_hierarchy of its [\_contentContainer](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentcontainer.md).                                                                                                                                |
| [RemoveAt](/engine/6000.7/script-reference/unityengine/uielements/visualelement/removeat.md)                                                 | Removes a child, at the provided index, from the list of children of the current element.                                                                                                                                                                                                     |
| [RemoveComponent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/removecomponent.md)                                   | Removes the attached component of type `T`.                                                                                                                                                                                                                                                   |
| [RemoveFromClassList](/engine/6000.7/script-reference/unityengine/uielements/visualelement/removefromclasslist.md)                           | Removes a class from the class list of the element.                                                                                                                                                                                                                                           |
| [RemoveFromHierarchy](/engine/6000.7/script-reference/unityengine/uielements/visualelement/removefromhierarchy.md)                           | Removes this element from its parent hierarchy.                                                                                                                                                                                                                                               |
| [RemoveMeshModifier](/engine/6000.7/script-reference/unityengine/uielements/visualelement/removemeshmodifier.md)                             | Removes a previously-registered modifier. The registration is identified by delegate equality; pass the same callback reference that was registered. No-op if the callback is not registered. If the callback was registered more than once, only the first matching registration is removed. |
| [SendEvent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/sendevent.md)                                               | Sends an event to the event handler.                                                                                                                                                                                                                                                          |
| [SendToBack](/engine/6000.7/script-reference/unityengine/uielements/visualelement/sendtoback.md)                                             | Sends this element to the beginning of its parent children list. The element will be visually behind any overlapping sibling elements.                                                                                                                                                        |
| [SetActivePseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/setactivepseudostate.md)                         | Sets whether or not this element is displayed as being active.                                                                                                                                                                                                                                |
| [SetBinding](/engine/6000.7/script-reference/unityengine/uielements/visualelement/setbinding.md)                                             | Assigns a binding between a target and a source.                                                                                                                                                                                                                                              |
| [SetCheckedPseudoState](/engine/6000.7/script-reference/unityengine/uielements/visualelement/setcheckedpseudostate.md)                       | Sets whether or not this element is displayed as being checked.                                                                                                                                                                                                                               |
| [SetEnabled](/engine/6000.7/script-reference/unityengine/uielements/visualelement/setenabled.md)                                             | Changes the [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) enabled state. A disabled visual element does not receive most events.                                                                                                                   |
| [Sort](/engine/6000.7/script-reference/unityengine/uielements/visualelement/sort.md)                                                         | Reorders child elements from this VisualElement contentContainer.                                                                                                                                                                                                                             |
| [ToggleInClassList](/engine/6000.7/script-reference/unityengine/uielements/visualelement/toggleinclasslist.md)                               | Toggles between adding and removing the given class name from the class list.                                                                                                                                                                                                                 |
| [TryGetBinding](/engine/6000.7/script-reference/unityengine/uielements/visualelement/trygetbinding.md)                                       | Gets the binding instance for the provided targeted property.                                                                                                                                                                                                                                 |
| [TryGetDataSourceContext](/engine/6000.7/script-reference/unityengine/uielements/visualelement/trygetdatasourcecontext.md)                   | Queries the [\_dataSource](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasource.md) and [\_dataSourcePath](/engine/6000.7/script-reference/unityengine/uielements/visualelement/datasourcepath.md) of a binding object.                                            |
| [TryGetLastBindingToSourceResult](/engine/6000.7/script-reference/unityengine/uielements/visualelement/trygetlastbindingtosourceresult.md)   | Returns the last [BindingResult](/engine/6000.7/script-reference/unityengine/uielements/bindingresult.md) of a binding object from the UI to the data source.                                                                                                                                 |
| [TryGetLastBindingToUIResult](/engine/6000.7/script-reference/unityengine/uielements/visualelement/trygetlastbindingtouiresult.md)           | Returns the last [BindingResult](/engine/6000.7/script-reference/unityengine/uielements/bindingresult.md) of a binding object from the data source to the UI.                                                                                                                                 |
| [TryRemoveComponent](/engine/6000.7/script-reference/unityengine/uielements/visualelement/tryremovecomponent.md)                             | Removes the attached component of type `T`, if one is attached.                                                                                                                                                                                                                               |

## Structs

| Struct                                                                                                       | Description                                                               |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| [VisualElement.Hierarchy](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hierarchy.md) | Hierarchy is a struct allowing access to the hierarchy of visual elements |

## Enums

| Enum                                                                                                             | Description                                                                                                                    |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [VisualElement.MeasureMode](/engine/6000.7/script-reference/unityengine/uielements/visualelement/measuremode.md) | The modes available to measure [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) sizes. |

## Inheritance

**Inherited Members:**

* [Focusable.Blur()](/engine/6000.7/script-reference/unityengine/uielements/focusable/blur.md)
* [Focusable.focusable](/engine/6000.7/script-reference/unityengine/uielements/focusable/focusable.md)
* [Focusable.tabIndex](/engine/6000.7/script-reference/unityengine/uielements/focusable/tabindex.md)
* [Focusable.delegatesFocus](/engine/6000.7/script-reference/unityengine/uielements/focusable/delegatesfocus.md)
* [CallbackEventHandler.RegisterCallback\<T>(EventCallback\<T>, TrickleDown)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/registercallback.md)
* [CallbackEventHandler.RegisterCallbackOnce\<T>(EventCallback\<T>, TrickleDown)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/registercallbackonce.md)
* [CallbackEventHandler.RegisterCallback\<T, U>(EventCallback\<T, T>, T, TrickleDown)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/registercallback.md)
* [CallbackEventHandler.RegisterCallbackOnce\<T, U>(EventCallback\<T, T>, T, TrickleDown)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/registercallbackonce.md)
* [CallbackEventHandler.RegisterCallback\<T>(EventCallback\<T>, CallbackOptions)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/registercallback.md)
* [CallbackEventHandler.RegisterCallback\<T, U>(EventCallback\<T, T>, T, CallbackOptions)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/registercallback.md)
* [CallbackEventHandler.UnregisterCallback\<T>(EventCallback\<T>, TrickleDown)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/unregistercallback.md)
* [CallbackEventHandler.UnregisterCallback\<T, U>(EventCallback\<T, T>, TrickleDown)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/unregistercallback.md)
* [CallbackEventHandler.UnregisterCallback\<T>(EventCallback\<T>, CallbackOptions)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/unregistercallback.md)
* [CallbackEventHandler.UnregisterCallback\<T, U>(EventCallback\<T, T>, CallbackOptions)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/unregistercallback.md)
* [CallbackEventHandler.UnregisterAllRemovableCallbacks()](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/unregisterallremovablecallbacks.md)
* [CallbackEventHandler.HasTrickleDownHandlers()](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/hastrickledownhandlers.md)
* [CallbackEventHandler.HasBubbleUpHandlers()](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/hasbubbleuphandlers.md)
* [CallbackEventHandler.HandleEventBubbleUp(EventBase)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/handleeventbubbleup.md)
* [CallbackEventHandler.HandleEventTrickleDown(EventBase)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/handleeventtrickledown.md)
* [CallbackEventHandler.NotifyPropertyChanged(BindingId)](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/notifypropertychanged.md)
