Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Tool

Description

Which tool is active in the editor.

Variables

ViewThe view tool is active - Use Tools.viewTool to find out which view tool we're talking about.
MoveThe move tool is active.
RotateThe rotate tool is active.
ScaleThe scale tool is active.
NoneNo tool is active. Set this to implement your own in-inspector toolbar (like the terrain editor does).