# AddChild(TreeViewItem<TIdentifier>)

> Helper method that adds the child TreeViewItem to the TreeViewItem<TIdentifier>.children list and sets the parent property on the child.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.5/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

## AddChild(TreeViewItem\<T>)

```csharp
public void AddChild(TreeViewItem<TIdentifier> child)
```

### Parameters

**** (\[TreeViewItem\<T>]\(/engine/6000.5/script-reference/unityeditor/imgui/controls/treeviewitem1)): TreeViewItem to be added to the children list.
