Skip to main content

Type Alias: UiAlignment

UiAlignment = Vector2

Defined in: ui/types/ui-alignment.ts:10

A normalized alignment fraction, in the same (0, 0) = bottom-left, (1, 1) = top-right convention as RectTransformEcsComponent.pivot - where a layout group places its children within any leftover space on each axis, after the children's own sizes (and spacing) are subtracted from the group's content box.