HorizontalOverflow
EnumOptions for wrapping text horizontally.
- Available on all platforms
Options for wrapping text horizontally.
Used by Text's component's horizontalOverflow property.
Index
Enumeration Members
Example
// @input Component.Text textComponent
script.textComponent.horizontalOverflow = HorizontalOverflow.Wrap;
Enumeration Members
Ellipsis
Ellipsis:
number
When text exceeds the available space an ellipsis (...) will be added at the end.
EllipsisFront
EllipsisFront:
number
When text exceeds the available space in the front, an ellipsis (...) will be added at the front.
Overflow
Overflow:
number
Text will continue drawing past horizontal boundaries.
Shrink
Shrink:
number
Text will shrink to fit within the horizontal boundaries.
Truncate
Truncate:
number
Text is clipped to the width of horizontal boundaries.
TruncateFront
TruncateFront:
number
Text is clipped in the front to the width of horizontal boundaries.
Wrap
Wrap:
number
Text wraps when reaching horizontal boundaries and continues on the next line.