Roblox UtilitiesDevlHub Roblox Documentation

Class

UIScale

Inherits
UIComponent › UIBase › Instance › Object
Memory category
Instances

An object that acts as a multiplier for the size of the parent UI element's scale.

A UIScale object simply contains a number that is used to multiply the GuiBase2d.AbsoluteSize of the parent UI element. This number is stored in UIScale.Scale.

Properties 1#

ScalefloatDetermines the multiplier to apply to the parent UI element's size.ReadSafe

Scale: float#

ReadSafe

The Scale property determines the multiplier used on the parent UI element's GuiBase2d.AbsoluteSize. When set to 0.5, an AbsoluteSize of {0, 200}, {0, 50} becomes {0, 100}, {0, 25}. Similarly, when set to 2, such an AbsoluteSize would become {0, 400}, {0, 100}.

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed