When enabled, this property will render text on multiple lines within a
TextBox|GUI element’s space so that
TextBox/TextBounds will never exceed the
GuiBase2d/AbsoluteSize of the GUI element.
This is achieved by breaking long lines of text into multiple lines. Line breaks will prefer whitespace; should a long unbroken word exceed the width of the element, that word will be broken into multiple lines.
If further line breaks would cause the vertical height of the text (the Y component of
TextBox/TextBounds) to exceed the vertical height of the element (the Y component of
GuiBase2d/AbsoluteSize), then that line will not be rendered at all.
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.