SnapLines
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.
Lines X
ObservableList<SnapGridBase.LineX>Lines on X axis.
Lines Y
ObservableList<SnapGridBase.LineY>Lines on Y axis.
SnapGridBase.LineX
X
floatPosition on X axis.
Snap Left
boolAllow snapping by left side of the
RectTranform(right of the line).Snap Right
boolAllow snapping by right side of the
RectTranform(left of the line).
SnapGridBase.LineY
Y
floatPosition on Y axis.
Snap Top
boolAllow snapping by top side of the
RectTranform(bottom of the line).Snap Bottom
boolAllow snapping by bottom side of the
RectTranform(top of the line).
Events
OnLinesChanged
UnityEventRaised when lines changed.