# hasSearch

> The current search state of the TreeView.

## Definition

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

```csharp
public bool hasSearch { get; }
```

### Remarks

True if the TreeView has a search string set. Additional Resources: [TreeView\<TIdentifier>.searchString](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/searchstring.md).
