FloatedText
One text to show.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
at |
Vector3Like | PositionInput |
undefined |
Where in the world it starts: a vector, or an entity’s [x, y, z] position. |
className? |
string |
undefined |
Classes on this text alone, over the pool’s: a size for a crit, a colour, an animation of its own. On the text itself, apart from the element that moves it, so an animation of its transform runs, and its animations start again with each text shown. |
color? |
string |
undefined |
A CSS colour. Left out, the pool’s own, from its class. |
fade? |
boolean |
true |
Whether the pool fades the text out over its seconds. Off for a text whose own animation fades it, so the two do not multiply. |
rise? |
number |
1 |
Metres a second it rises. |
seconds? |
number |
0.75 |
Seconds it shows for, fading the whole time. |
text |
string |
undefined |
- |