Tools
Class used to manipulate the tools used in Unity's Scene View.
Read time 4 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
- Inherits from: ScriptableObject
public sealed class Tools : ScriptableObject
Static Properties
Property | Description |
|---|---|
| current | The tool that is currently selected for the Scene View. |
| handlePosition | The position of the tool handle in world space. |
| handleRect | The rectangle used for the rect tool. |
| handleRectRotation | The rotation of the rect tool handle in world space. |
| handleRotation | The rotation of the tool handle in world space. |
| hidden | Hides the Tools(Move, Rotate, Resize) handles in the Scene view. |
| pivotMode | Are we in Center or Pivot mode. |
| pivotRotation | What's the rotation of the tool handle. |
| rectBlueprintMode | Is the rect handle in blueprint mode? |
| viewTool | The option that is currently active for the View tool in the Scene view. |
| viewToolActive | Returns true if the active tool is a view or navigation tool. |
| visibleLayers | Which layers are visible in the Scene view. |
Static Events
Member | Description |
|---|---|
| pivotModeChanged | Callback triggered when the pivot mode changes. |
| pivotRotationChanged | Callback triggered when the pivot rotation changes. |
| viewToolChanged | Callback triggered when the view tool changes. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |