# TreeViewItem

> TreeViewItem constructor.

## Definition

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

## TreeViewItem()

TreeViewItem constructor.

```csharp
public TreeViewItem()
```

## TreeViewItem(int)

TreeViewItem constructor.

```csharp
public TreeViewItem(int id)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Unique ID to identify this TreeViewItem with among all TreeViewItems of the TreeView. See Also [TreeViewItem.id](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeviewitem/id.md).

## TreeViewItem(int, int)

TreeViewItem constructor.

```csharp
public TreeViewItem(int id, int depth)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Unique ID to identify this TreeViewItem with among all TreeViewItems of the TreeView. See Also [TreeViewItem.id](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeviewitem/id.md).**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Depth of this TreeViewItem. See Also [TreeViewItem.depth](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeviewitem/depth.md).

## TreeViewItem(int, int, string)

TreeViewItem constructor.

```csharp
public TreeViewItem(int id, int depth, string displayName)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Unique ID to identify this TreeViewItem with among all TreeViewItems of the TreeView. See Also [TreeViewItem.id](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeviewitem/id.md).**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Depth of this TreeViewItem. See Also [TreeViewItem.depth](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeviewitem/depth.md).**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Rendered name of this TreeViewItem. See Also [TreeViewItem.displayName](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeviewitem/displayname.md).
