Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Tools

Class used to manipulate the tools used in Unity's Scene View.
Read time 4 minutesLast updated 5 days ago

Definition

public sealed class Tools : ScriptableObject

Static Properties

Property

Description

currentThe tool that is currently selected for the Scene View.
handlePositionThe position of the tool handle in world space.
handleRectThe rectangle used for the rect tool.
handleRectRotationThe rotation of the rect tool handle in world space.
handleRotationThe rotation of the tool handle in world space.
hiddenHides the Tools(Move, Rotate, Resize) handles in the Scene view.
pivotModeAre we in Center or Pivot mode.
pivotRotationWhat's the rotation of the tool handle.
rectBlueprintModeIs the rect handle in blueprint mode?
viewToolThe option that is currently active for the View tool in the Scene view.
viewToolActiveReturns true if the active tool is a view or navigation tool.
visibleLayersWhich layers are visible in the Scene view.

Static Events

Member

Description

pivotModeChangedCallback triggered when the pivot mode changes.
pivotRotationChangedCallback triggered when the pivot rotation changes.
viewToolChangedCallback triggered when the view tool changes.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.