Text

class Text

Text. Created using add_text().

position

Position of the text.

Attribute:Can be read or written
Return type:tuple(double, double, double)
Game Scenes:Flight
rotation

Rotation of the text as a quaternion.

Attribute:Can be read or written
Return type:tuple(double, double, double, double)
Game Scenes:Flight
reference_frame

Reference frame for the positions of the object.

Attribute:Can be read or written
Return type:SpaceCenter.ReferenceFrame
Game Scenes:Flight
visible

Whether the object is visible.

Attribute:Can be read or written
Return type:bool
Game Scenes:Flight
remove()

Remove the object.

Game Scenes:Flight
content

The text string

Attribute:Can be read or written
Return type:str
Game Scenes:Flight
font

Name of the font

Attribute:Can be read or written
Return type:str
Game Scenes:Flight
static available_fonts()

A list of all available fonts.

Return type:list(str)
Game Scenes:Flight
size

Font size.

Attribute:Can be read or written
Return type:int
Game Scenes:Flight
character_size

Character size.

Attribute:Can be read or written
Return type:float
Game Scenes:Flight
style

Font style.

Attribute:Can be read or written
Return type:UI.FontStyle
Game Scenes:Flight
color

Set the color

Attribute:Can be read or written
Return type:tuple(double, double, double)
Game Scenes:Flight
material

Material used to render the object. Creates the material from a shader with the given name.

Attribute:Can be read or written
Return type:str
Game Scenes:Flight
alignment

Alignment.

Attribute:Can be read or written
Return type:UI.TextAlignment
Game Scenes:Flight
line_spacing

Line spacing.

Attribute:Can be read or written
Return type:float
Game Scenes:Flight
anchor

Anchor.

Attribute:Can be read or written
Return type:UI.TextAnchor
Game Scenes:Flight