# hasSearch

> The current search state of the TreeView.

## Definition

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

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

### Remarks

True if the TreeView has a search string set. Additional Resources: [TreeView.searchString](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeview/searchstring.md).
