Collapse Sidebar




The TextFits is a read-only property that is true if rendered TextLabel/Text content does not fit within the GuiBase2d/AbsoluteSize when rendered. If TextLabel/TextWrapped is true, this 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 disable 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.