PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

TextScaled

TextLabel

bool

The TextScaled property determines whether text is scaled so that it fills the entire UI element’s space. When this is enabled, TextLabel/TextSize is ignored and TextLabel/TextWrapped is automatically enabled. This property is useful for text-rendering UI elements within BillboardGuis.

When this property is used for screen-space UI, it may be desirable to use a UITextSizeConstraint to restrict the range of possible text sizes.


Code Samples


Long Text Wrapping

This code sample demonstrates TextWrap by spelling out a long chunk of text progressively. If the text doesn’t fit, it turns a different color.