# GetVisualElement()

> Retrieves the VisualElement that draws the project state-changing UI.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Connect](/engine/6000.5/script-reference/unityeditor/connect.md)
* **Assembly:** UnityEditor

```csharp
VisualElement GetVisualElement()
```

### Returns

| Type                                                                                     | Description              |
| ---------------------------------------------------------------------------------------- | ------------------------ |
| [VisualElement](/engine/6000.5/script-reference/unityengine/uielements/visualelement.md) | Returns a VisualElement. |
