UDim

One axis of a size or position: a scale and an offset.

The scale is a fraction of the parent; the offset is in pixels.

Constructors

Up and coming: the native runtime gives these. Today a program reads a UDim from an attribute, and shot check refuses UDim.new in a System project.

NameArgumentsReturnsDescription
UDim.new(scale: number?, offset: number?)UDim

Properties

NameTypeDefaultDescription
Offsetnumber
Scalenumber

Operators

OperationResult
UDim + UDimUDim
UDim - UDimUDim
-UDimUDim