# hoveredItem

> Use this property to detect which TreeViewItem the mouse cursor is currently hovering over in the TreeView. This property is only valid if the TreeView.enableItemHovering property has been set to true.

## Definition

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

```csharp
protected TreeViewItem hoveredItem { get; }
```
