UDim

Afficher les obsolètes

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.

Résumé

Constructeurs

Propriétés

Opérations Maths

Constructeurs

new

Paramètres

Scale: number
Offset: number

Propriétés

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.

Opérations Maths

UDim + UDim : UDim

UDim - UDim : UDim