PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

UDim

A one-dimensional value with two components, a relative scale and an absolute offset.

Constructors

UDim.new ( number Scale, number Offset )

Returns a UDim from the given components.

Properties

number UDim.Scale

The scale component of the UDim. The value this represents is scaled relative to the axis that this UDim is representing in a UDim2.

int UDim.Offset

The pixel unit component of the UDim.

Math Operations

UDim UDim + UDim

Returns the sum of the two UDim values.

UDim UDim - UDim

Returns the product of subtracting the two UDim values from each other.