# ToolManager

> This class manipulates editor tools in the Scene view.

## Definition

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

```csharp
public static class ToolManager
```

## Static Properties

| Property                                                                                                      | Description                                                                                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [activeContextType](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/activecontexttype.md) | Gets the type of [EditorToolContext](/engine/6000.7/script-reference/unityeditor/editortools/editortoolcontext.md) that is currently active. The default value is [GameObjectToolContext](/engine/6000.7/script-reference/unityeditor/editortools/gameobjecttoolcontext.md). |
| [activeToolType](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/activetooltype.md)       | Gets the type of the [EditorTool](/engine/6000.7/script-reference/unityeditor/editortools/editortool.md) that is currently active.                                                                                                                                           |

## Static Methods

| Method                                                                                                                                | Description                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [IsActiveContext](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/isactivecontext.md)                             | Test if an [EditorToolContext](/engine/6000.7/script-reference/unityeditor/editortools/editortoolcontext.md) is currently the active tool context. |
| [IsActiveTool](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/isactivetool.md)                                   | Test if an [EditorTool](/engine/6000.7/script-reference/unityeditor/editortools/editortool.md) is currently the active tool.                       |
| [RefreshAvailableTools](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/refreshavailabletools.md)                 | Call RefreshAvailableTools to rebuild the contents of the Scene View Tools Overlay.                                                                |
| [RestorePreviousPersistentTool](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/restorepreviouspersistenttool.md) | Sets the last-used global [EditorTool](/engine/6000.7/script-reference/unityeditor/editortools/editortool.md) as the active tool.                  |
| [RestorePreviousTool](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/restoreprevioustool.md)                     | Sets the last-used [EditorTool](/engine/6000.7/script-reference/unityeditor/editortools/editortool.md) as the active tool.                         |
| [SetActiveContext](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/setactivecontext.md)                           | Sets the active [EditorToolContext](/engine/6000.7/script-reference/unityeditor/editortools/editortoolcontext.md).                                 |
| [SetActiveTool](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/setactivetool.md)                                 | Sets the active [EditorTool](/engine/6000.7/script-reference/unityeditor/editortools/editortool.md).                                               |

## Static Events

| Member                                                                                                                | Description                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [activeContextChanged](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/activecontextchanged.md)   | Defines an event handler for when the active [EditorToolContext](/engine/6000.7/script-reference/unityeditor/editortools/editortoolcontext.md) changes.     |
| [activeContextChanging](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/activecontextchanging.md) | Defines an event handler for when the active [EditorToolContext](/engine/6000.7/script-reference/unityeditor/editortools/editortoolcontext.md) will change. |
| [activeToolChanged](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/activetoolchanged.md)         | Defines an event handler for when the active tool changes.                                                                                                  |
| [activeToolChanging](/engine/6000.7/script-reference/unityeditor/editortools/toolmanager/activetoolchanging.md)       | Defines an event handler for when the active tool changes.                                                                                                  |
