# IsActiveTool(EditorTool)

> Test if an EditorTool is currently the active tool.

## Definition

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

```csharp
public static bool IsActiveTool(EditorTool tool)
```

### Parameters

**** (\[EditorTool]\(/engine/6000.5/script-reference/unityeditor/editortools/editortool)): The [EditorTool](/engine/6000.5/script-reference/unityeditor/editortools/editortool.md) to compare with the active tool.

### Returns

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