# targetElement

> Returns the element that determines which root to use as the menu's parent.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public VisualElement targetElement { get; }
```
