# OnWillBeDeactivated()

> Invoked before this EditorTool stops being the active tool.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.EditorTools](/engine/6000.0/script-reference/unityeditor/editortools.md)
* **Assembly:** UnityEditor

```csharp
public virtual void OnWillBeDeactivated()
```
