Text¶
- class UI.Text¶
A text label. See
UI.Panel.add_text()
.- rect_transform: UI.RectTransform¶
The rect transform for the text.
- Attribute:
Read-only, cannot be set
- Return type:
- visible: boolean¶
Whether the UI object is visible.
- Attribute:
Can be read or written
- Return type:
boolean
- content: string¶
The text string
- Attribute:
Can be read or written
- Return type:
string
- font: string¶
Name of the font
- Attribute:
Can be read or written
- Return type:
string
- available_fonts: List¶
A list of all available fonts.
- Attribute:
Read-only, cannot be set
- Return type:
List
- size: number¶
Font size.
- Attribute:
Can be read or written
- Return type:
number
- style: UI.FontStyle¶
Font style.
- Attribute:
Can be read or written
- Return type:
- color: Tuple¶
Set the color
- Attribute:
Can be read or written
- Return type:
Tuple
- alignment: UI.TextAnchor¶
Alignment.
- Attribute:
Can be read or written
- Return type:
- line_spacing: number¶
Line spacing.
- Attribute:
Can be read or written
- Return type:
number
- remove()¶
Remove the UI object.
- class UI.FontStyle¶
Font style.
- normal¶
Normal.
- bold¶
Bold.
- italic¶
Italic.
- bold_and_italic¶
Bold and italic.