PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

UDim2

Constructors

UDim2.new ( number xScale, number xOffset, number yScale, number yOffset )
UDim2.new ( UDim x, UDim y )

Properties

UDim UDim2.X

The x dimension scale and offset

UDim UDim2.Y

The y dimension scale and offset

UDim UDim2.Width

The x dimension scale and offset

UDim UDim2.Height

The y dimension scale and offset

Functions

UDim2 UDim2:Lerp ( UDim2 goal, number alpha )

Returns a UDim2 interpolated between this UDim2 and the provided goal. The alpha should be a number between 0 and 1.

Math Operations

UDim2 UDim2 + UDim2

Returns the product of adding the two UDim2 values together.

UDim2 UDim2 - UDim2

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