# FindItem(TIdentifier, TreeViewItem<TIdentifier>)

> Finds a TreeViewItem by an ID.

## Definition

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

## FindItem(T, TreeViewItem\<T>)

```csharp
protected TreeViewItem<TIdentifier> FindItem(TIdentifier id, TreeViewItem<TIdentifier> searchFromThisItem)
```

### Parameters

**** (T): Find the TreeViewItem with this ID.**** (\[TreeViewItem\<T>]\(/engine/6000.5/script-reference/unityeditor/imgui/controls/treeviewitem)): Sets the search to start from an item. Use 'rootItem' to search the entire tree.

### Returns

| Type                                                                                           | Description                                                                      |
| ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [TreeViewItem\<T>](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeviewitem.md) | This search method returns the TreeViewItem found and returns null if not found. |

### Remarks

Set the searchFromThisItem parameter to 'rootItem' to search the entire tree.
