Constructor
new UIText(posopt, sizeopt, textopt, alignopt, fontopt)
Create a UIText object
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pos | Vector2 | <optional> | ||
size | Vector2 | <optional> | ||
text | string | <optional> | ||
align | string | <optional> | center | |
font | string | <optional> | uiSystem.defaultFont |
- Source
Extends
- UIObject