UDim2

Summary

Constructors

new()

new(xScale: number, xOffset: number, yScale: number, yOffset: number)

new(x: UDim, y: UDim)

fromScale(xScale: number, yScale: number)

fromOffset(xOffset: number, yOffset: number)

Properties

Methods

Lerp(goal: UDim2, alpha: number): UDim2

Math Operations

Constructors

new

new

Parameters

xScale: number

Default Value: QuickType.V4.DataType.Default

xOffset: number

Default Value: QuickType.V4.DataType.Default

yScale: number

Default Value: QuickType.V4.DataType.Default

yOffset: number

Default Value: QuickType.V4.DataType.Default

new

Parameters

x: UDim

Default Value: QuickType.V4.DataType.Default

y: UDim

Default Value: QuickType.V4.DataType.Default

fromScale

Parameters

xScale: number

Default Value: QuickType.V4.DataType.Default

yScale: number

Default Value: QuickType.V4.DataType.Default

fromOffset

Parameters

xOffset: number

Default Value: QuickType.V4.DataType.Default

yOffset: number

Default Value: QuickType.V4.DataType.Default

Properties

Width

Height

Methods

Lerp

Parameters

goal: UDim2

Default Value: QuickType.V4.DataType.Default

alpha: number

Default Value: QuickType.V4.DataType.Default

Returns

UDim2

Math Operations

Addition: +

Type A: UDim2

Type B: UDim2

Return Type: UDim2

Subtraction: -

Type A: UDim2

Type B: UDim2

Return Type: UDim2