Skip to content
Eric Mor edited this page Aug 8, 2019 · 1 revision

The text component is used to display text in the screen.

Keyword: text

Attributes

string <string> -id <resourceID> -size <float> -offset <vector2>

The text string that will be displayed. You can use the -id option to localize the text for different translations. -size configures the font size. -offset is a 2D displacement applied to the text.


style <resourceID> -size <float>

This configures the font style ID used, as well as the font size.


life <float> -sustain

How many seconds the effect will live. Use -sustain to make the effect live forever (until it is manually killed, e.g. by deleting it)


color <colorRGB...>

The color applied to the text; the default color is white. This field is animatable, so multiple colors can be specified to change the color over the lifetime of the effect.


alpha <float...>

The opacity of the text, with 1.0 being opaque and 0.0 transparent. This field is animatable, so multiple values can be specified to change the opacity over the lifetime of the effect.


size <float...>

The scale of the text, 1.0 by default. This is a scaling factor that gets multiplied by the font size. This field is animatable, so multiple values can be specified to change the scale over the lifetime of the effect.

Clone this wiki locally