UDim||doc135368

September 20, 2022

UDim

Udim is a coordinate used to construct udim2, which represents the absolute size and relative size of a dimension.

Constructor

UDim UDim.new( float scale,  float offset  )
Create a udim type data instance
UDim UDim.new( UDim udim )
Create a udim type data instance

Properties

float UDim[1]
Relative dimension
float UDim[2]
Absolute size

computation

UDim UDim + UDim
Returns the UDim after adding the two UDim values
UDim UDim – UDim
Returns the UDim after subtracting the two UDim values