# RestorePreviousTool()

> Sets the last-used EditorTool as the active tool.

## Definition

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

```csharp
public static void RestorePreviousTool()
```
