# RebuildTree()

> Rebuilds the tree item data and regenerates wrappers to fill the source.

## Definition

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

> **Warning:**
>
> **Deprecated.** RebuildTree is no longer supported and will be removed.

```csharp
public void RebuildTree()
```

### Remarks

This needs to be called when adding/removing/moving items.
