ViewTool Manual     Reference     Scripting  
Scripting > Editor Enumerations > ViewTool
ViewTool Enumeration

Enum for Tools.viewTool

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
None

View tool is not selected.

Orbit

The orbit tool is selected.

Pan

The pan tool is selected.

Zoom

The zoom tool is selected.

FPS

The FPS tool is selected.