# OnActivated()

> Invoked after this EditorToolContext becomes the active tool context.

## Definition

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

```csharp
public virtual void OnActivated()
```
