Text#
- class Text#
A text label. Added to a
Canvasor aPanel.Base class:ObjectInherited Members
From
Object:RectTransform,LayoutElement,Visible,Remove
- bool WordWrap { get; set; }#
Whether the text wraps onto further lines when it is wider than the space it has. Text that does not wrap carries on past the edge, and its preferred size is that of a single line, so a changing value leaves a layout in place.
- Game Scenes:
All
- string Font { get; set; }#
Name of the font
- Game Scenes:
All
Note
Empty if the game provided no font to draw the text with, in which case it is not drawn. See
Text.AvailableFontsfor the names that can be set.
- StdLib.ColorRGBA Color { get; set; }#
The color the text is drawn in.
- Game Scenes:
All
- TextAnchor Alignment { get; set; }#
Alignment.
- Game Scenes:
All
- enum FontStyle#
Font style.
- Normal#
Normal.
- Bold#
Bold.
- Italic#
Italic.
- BoldAndItalic#
Bold and italic.