Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

Tool

enumeration

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.
RectThe rect tool is active.
NoneNo tool is active. Set this to implement your own in-inspector toolbar (like the terrain editor does).

Did you find this page useful? Please give it a rating: