Reference API Roblox

Engine API

Website

Related

Reference API Roblox

AutomaticSize

UI objects with AutomaticSize enabled will increase in size up to maximum size allowed by the parent (if there is one) and no smaller than the Size property bounds.

Items 4

HistoryNameValueDescription
449None0

Default sizing behavior.

449X1

Automatically resize element along X-axis to fit child contents.

449Y2

Automatically resize element along Y-axis to fit child contents. Text Objects will only resize along the Y-axis if TextWrapped is enabled.

449XY3

Automatically resize element along X and Y axes to fit child contents.

Description

UI objects with AutomaticSize enabled will increase in size up to maximum size allowed by the parent (if there is one) and no smaller than the Size property bounds. To enable AutomaticSize, set the value to an enum value other than None.

This enum is used by GuiObject.AutomaticSize and ScrollingFrame.AutomaticCanvasSize to determine whether and how resizing occurs based on child content.

For more information, see Automatic Sizing.

History 5

Settings