VirtualText (VirtualElement)
VirtualText
Parent - VirtualElement
This class will inherit variables, methods and more from it's parent class.
| Name | Type | Description |
|---|---|---|
| Text | String | The text to be shown. |
| Size | Integer | Size of text in pt. |
| Text Font | String | Name of font the text will be displayed in. |
| Text Color | Linear Color | Colour (including alpha) of text. |
| Text Alignment | Enum_Astrum_HUD_Virtual_Text_Alignment | Text alignment (left \ centre \ right) locked to enum |
Text Font - Study this w3school.com article about picking "web safe fonts".
Text Font - Additionally, you can use various Google Fonts HOWEVER please also use a fallback font using the "," syntax.
Example:
Lato Black, serif : This example will attempt to load "Lato Black" and fallback to "serif" if failed.