Library

UDim

table

Constructor and helpers for the UDim datatype (one-dimensional scale plus offset).

Functions

1

#UDim.new(scale: number?, offset: number?) → UDim

since 0.5.4a-alpha

Creates a UDim with the given scale and offset (both default to 0).

Parameters

scalenumber?

Scale component.

offsetnumber?

Offset component.