UDim

Visualizza obsoleti

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.

Sommario

Costruttori

Proprietà

Operazioni Matematiche

Costruttori

new

Parametri

Scale: number
Offset: number

Proprietà

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.

Operazioni Matematiche

UDim + UDim : UDim

UDim - UDim : UDim