color
: Color |
The color for the text with Unity's builtin Color type.
by default using white color.
Signature
Color color |
font
: Font |
The font of the text using Unity's builtin Font type.
Assign it with font assets.
Signature
Font font |
fontSize
: int |
The font size of the text, by default to 14.
Signature
int fontSize |
fontStyle
: FontStyle |
Font style, to allow italic or bold.
Signature
FontStyle fontStyle |
horizontalOverflow
: HorizontalWrapMode |
Wrapping modes for text that reaches the horizontal boundary.
Signature
HorizontalWrapMode horizontalOverflow |
textAlignement
: TextAnchor |
Where the anchor of the text is placed.
There are 9 possible alignment styles, check out details in the TextAnchor.
Signature
TextAnchor textAlignement |