Vixen
02b45cc4
csharp
public enum SnapBase

Which part of what is being dragged is put on the snap point.

Read the guide page for this →

Remarks

⚠ The half everybody omits, and doc 24's D4 says it is the half that matters. Snapping the centre of what you dragged to a vertex is almost never what you meant; you meant the corner you grabbed. A snap with no base concept can only offer the first, which is why a great many editors' vertex snapping is a feature people try once.

Fields and properties (4)

  • Origin

    The gizmo's own origin — wherever the handles are drawn.

  • Centre

    The middle of everything selected, whatever the pivot mode says.

  • Active

    The active element's own origin, which is the first of the selection.

  • Pointer

    Where the pointer met the geometry when the drag began.

Used by (6)

  • EditorApplicationVixen.Editor.App
  • SnapCommandTestsVixen.Editor.App.Tests
  • SnapContextVixen.Editor.SceneView
  • SnapContextTestsVixen.Editor.SceneView.Tests
  • TransformGizmoVixen.Editor.SceneView
  • ViewportIdsVixen.Editor.App