# IsActiveContext(EditorToolContext)

> Test if an EditorToolContext is currently the active tool context.

## Definition

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

```csharp
public static bool IsActiveContext(EditorToolContext context)
```

### Parameters

**** (\[EditorToolContext]\(/engine/6000.7/script-reference/unityeditor/editortools/editortoolcontext)): The [EditorToolContext](/engine/6000.7/script-reference/unityeditor/editortools/editortoolcontext.md) to compare with the active tool context.

### Returns

| Type                                                          | Description                                                                   |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the context is active, false if it is not the active context. |
