EditorSnapSettings
Control the behavior of handle snapping in the editor.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
public static class EditorSnapSettings
Static Properties
Property | Description |
|---|---|
| gridSize | Gets or sets the grid size used for snapping. |
| gridSnapActive | Gets whether grid snapping is active. |
| gridSnapEnabled | Gets or sets whether grid snapping is enabled. |
| incrementalSnapActive | Gets whether increment snapping is active. |
| move | Gets or sets the increment that translation handles snap to. |
| rotate | Gets or sets the increment that rotation handles snap to. |
| scale | Gets or sets the increment that scale handles snap to. |
| snapEnabled | Gets or sets whether snapping is enabled. |
Static Methods
Method | Description |
|---|---|
| ResetSnapSettings | Resets EditorSnap settings to default values. |
Static Events
Member | Description |
|---|---|
| gridSnapEnabledChanged | Callback triggered when the grid snap enabled value changes. |
| snapEnabledChanged | Calls the methods in its invocation list when the EditorSnapSettings.snapEnabled value changes . |