UDim

Mostrar obsoleto

The UDim data type represents a one-dimensional value with two components, a relative scale and an absolute offset.

Math Operations

The following math operations are valid for the UDim data type:

OperationDescription
UDim + UDimProduces a UDim representing the sum of the two UDim values.
UDim - UDimProduces a UDim representing the difference between the two UDim values.

Resumen

Constructores

Propiedades

Operaciones de matemáticas

Constructores

new

Parámetros

Scale: number
Offset: number

Propiedades

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.

Offset

The pixel unit component of the UDim.

Operaciones de matemáticas

UDim + UDim : UDim

UDim - UDim : UDim