Costruttore
TextRender.Default Constructor
Sintassi
TextRender(location, rotation, text, word_size = 26, color = Color.WHITE, rendering_type = TextRenderRenderingType.Lit, horizontal_alignment = TextRenderHorizontalAlignment.Center, vertical_alignment = TextRenderVerticalAlignment.Center, font_asset = "", cast_shadow = false)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
location
|
Vector | — | — |
rotation
|
Rotator | — | — |
text
|
string | — | — |
word_size
facoltativo
|
float | 26 |
Text size |
color
facoltativo
|
Color | Color.WHITE |
— |
rendering_type
facoltativo
|
TextRenderRenderingType | TextRenderRenderingType.Lit |
To make it unlit, always face the camera or always visible through walls |
horizontal_alignment
facoltativo
|
TextRenderHorizontalAlignment | TextRenderHorizontalAlignment.Center |
— |
vertical_alignment
facoltativo
|
TextRenderVerticalAlignment | TextRenderVerticalAlignment.Center |
— |
font_asset
facoltativo
|
string | "" |
The font asset to use for the text. Note the font must be a offline cached, distance field font |
cast_shadow
facoltativo
|
boolean | false |
Controls whether it should cast shadow or not |