# Root

> The root VisualElement of the node, to which custom UI can be added.

## Definition

* **Type:** Property
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
VisualElement Root { get; }
```

### Remarks

The contents of `Root` are cleared each time the node returns from being culled. Cache any custom UI you allocated in [NodeView\<T>.OnViewBuilt](/engine/6000.7/script-reference/unity/graphtoolkit/editor/nodeview1/onviewbuilt.md) and re-add it from [NodeView\<T>.OnCullingChanged](/engine/6000.7/script-reference/unity/graphtoolkit/editor/nodeview1/oncullingchanged.md) when `cullingEnabled` is false.
