SnapGridDetector

Detects SnapGrid under cursor during the drag, allowing snap to the automatically detected grid instead of the specified manually.
Used together with the ISnapGridSupport``components, like :doc:`resizable`, :doc:`draggable`, and ``DropRectTransform.

Options

  • Mode SnapGridDetector.Modes

    • Add

    • Replace

  • DragButton PointerEventData.InputButton

    The button that should be pressed to process the drag event.