SnapGrid
Allow snapping the RectTransform position or size to the nearest line.
Does not work on its own, should be used together with Resizable, Draggable, or DropRectTransform
Options
Snap Border Inside
SnapGridBase.BorderAllow snapping to the inner side of the border.
Snap Border Outside
SnapGridBase.BorderAllow snapping to the outer side of the border.
Padding
Vector2Padding from borders.
Step
Vector2Size of the grid cells.
Spacing
VectorEmpty space between cells.
Snap To Spacing
boolAllow spacing to inner sides of the spacing lines.
SnapGridBase.Border
Left
boolRight
boolTop
boolBoottom
bool
Events
OnLinesChanged
UnityEventRaised when lines changed.