snapEnabled
Gets or sets whether snapping is enabled.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static bool snapEnabled { get; set; }
Remarks
Enable to quantize built-in Scene view Transform tools, such as Move, Rotate, Scale, Transform, and Rect, to rounded values when they are manipulated.
The translate handle snaps to the nearest point on the SceneView grid when the Tool Handle Rotation is set to Global. In all other cases, the Increment Snapping values are applied.