UDim

非推奨を表示

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.

概要

コンストラクタ

プロパティ

コンストラクタ

new

パラメータ

Scale: number
Offset: number

プロパティ

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.

演算機能

UDim + UDim : UDim

UDim - UDim : UDim