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.Border
Allow snapping to the inner side of the border.
Snap Border Outside
SnapGridBase.Border
Allow 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
float
Position on X axis.
Snap Left
bool
Allow snapping by left side of the
RectTranform
(right of the line).Snap Right
bool
Allow snapping by right side of the
RectTranform
(left of the line).
SnapGridBase.LineY
Y
float
Position on Y axis.
Snap Top
bool
Allow snapping by top side of the
RectTranform
(bottom of the line).Snap Bottom
bool
Allow snapping by bottom side of the
RectTranform
(top of the line).
Events
OnLinesChanged
UnityEvent
Raised when lines changed.