Tool Manual     Reference     Scripting  
Scripting > Editor Enumerations > Tool
Tool Enumeration

Which tool is active in the editor

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Values
View

The view tool is active - Use Tools.viewTool to find out which view tool we're talking about.

Move

The move tool is active.

Rotate

The rotate tool is active.

Scale

The scale tool is active.

None

No tool is active. Set Tools.current to this to implement your own in-inspector toolbar (like the terrain editor does).