<Text>
An object that displays text using a bitmap font.
Set attributes
Attribute | Description |
font | [Required] Name of font resource |
animation | Animation mode |
speed | Animation speed |
text | Text content |
fit | Constrain text within size boundary |
align-x | Horizontal alignment |
align-y | Vertical alignment |
Additionally, this asset type inherits all object attributes.
animation [integer]
An integer value that sets the animation mode.
Value | Animation |
0 | None |
1 | Typewriter |
2 | Simple fade |
3 | Smooth fade |
Example:
animation = "1"
speed [integer]
Value that determines how fast the characters appear when animation is enabled in characters per second.
Example:
speed = "25"
fit [bool]
When false, text object will resize based on its text content.
When true, the text content is constrained to within the object's size.
Example:
fit = "true"
align-x [string]
Sets horizontal text alignment. Default alignment is " left".
Value | Alignment |
"left" | Left |
"center" | Center |
"right" | Right |
Example:
align-x = "center"
align-y [string]
Sets vertical text alignment. Default alignment is "top".
Value | Alignment |
"top" | Top |
"center" | Center |
"bottom" | Bottom |
Example:
align-y = "bottom"
Valid child tags
Child tags | Description |
<Traits> | Object traits list |
<Meta> | Meta information |
Objects... | Other objects |
Example
<Text name="My text" font="My font" text="Hello" align-x="center" />