Text#

class Text#

Text. Created using add_text().

position#

Position of the text.

Attribute:

Can be read or written

Return type:

tuple(float, float, float)

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

rotation#

Rotation of the text as a quaternion.

Attribute:

Can be read or written

Return type:

tuple(float, float, float, float)

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

face_camera#

Whether the text turns to face the camera, in place of its Text.rotation.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

reference_frame#

Reference frame for the positions of the object.

Attribute:

Can be read or written

Return type:

SpaceCenter.ReferenceFrame

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

visible#

Whether the object is visible.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

remove()#

Remove the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

content#

The text string

Attribute:

Can be read or written

Return type:

str

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

font#

Name of the font

Attribute:

Can be read or written

Return type:

str

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

static available_fonts()#

A list of all available fonts.

Return type:

list(str)

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

size#

Font size.

Attribute:

Can be read or written

Return type:

int

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

character_size#

Character size.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

style#

Font style.

Attribute:

Can be read or written

Return type:

UI.FontStyle

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

color#

Set the color

Attribute:

Can be read or written

Return type:

StdLib.ColorRGB

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

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, Tracking Station, Editor Vab, Editor Sph

alignment#

Alignment.

Attribute:

Can be read or written

Return type:

UI.TextAlignment

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

line_spacing#

Line spacing.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

anchor#

Anchor.

Attribute:

Can be read or written

Return type:

UI.TextAnchor

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph