Skip to content

Class · inherits UIComponent

UIScale

Official docs ↗

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

About UIScale

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

  • Scale: floatDetermines the multiplier to apply to the parent UI element's size.

    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}.

UIScale also has every member of UIComponent. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.