Luduvo Contents
Theme

UDim2

a length on both axes, as a fraction of the parent plus a pixel offset

Positioning UI Elements with Scale and Offset

Lifecycle: Client

Each axis holds a fraction of the parent plus a pixel offset, so a layout survives a resize.

Luau
-- Centered horizontally and vertically with a 24px bottom offsetlocal centerBadge = UDim2.new(0.5, 0, 0.5, 24)-- Responsive size: 90% screen width minus 32px margins, fixed 64px heightlocal actionPanel = UDim2.new(0.9, -32, 0, 64)-- Offset arithmeticlocal shifted = centerBadge + UDim2.fromOffset(0, 12)