# TreeViewItem

> TreeViewItem constructor.

## Definition

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

## TreeViewItem()

TreeViewItem constructor.

```csharp
public TreeViewItem()
```

## TreeViewItem(T)

TreeViewItem constructor.

```csharp
public TreeViewItem(TIdentifier id)
```

### Parameters

**** (T): Unique ID to identify this TreeViewItem with among all TreeViewItems of the TreeView. See Also [TreeViewItem\<TIdentifier>.id](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeviewitem1/id.md).

## TreeViewItem(T, int)

TreeViewItem constructor.

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

### Parameters

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

## TreeViewItem(T, int, string)

TreeViewItem constructor.

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

### Parameters

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