# ExpandedStateChanged()

> Override to get notified when items are expanded or collapsed. This is a general notification that the expanded state has changed.

## Definition

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

```csharp
protected virtual void ExpandedStateChanged()
```
