# UnbindView

> Raised when a HierarchyView is about to be unbound from the HierarchyWindow. Typically used to cleanup resources associated with the view.

## Definition

* **Type:** Event
* **Namespace:** [Unity.Hierarchy.Editor](/engine/6000.5/script-reference/unity/hierarchy/editor.md)
* **Assembly:** UnityEditor

```csharp
public static event HierarchyWindow.UnbindViewEventHandler UnbindView
```

### Remarks

This event provides the same functionality as [HierarchyNodeTypeHandler.OnUnbindView](/engine/6000.5/script-reference/unity/hierarchy/hierarchynodetypehandler/onunbindview.md) but at the window level for global cleanup.
