PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

TextFits

TextLabel

bool

The TextFits is a read-only property that is false if TextLabel/Text content does not fit within the GuiBase2d/AbsoluteSize when rendered. If TextLabel/TextWrapped is true, a false value indicates that some text is truncated and not rendering. Otherwise, it indicates if the line of text is rendering outside the UI element’s rectangle. If TextLabel/TextScaled is enabled, this property will be disabled when text must be scaled down in order to fit.


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.