Text#
- class Drawing.Text()#
Text. Created using
Drawing.addText().- Text.getPosition()#
- Text.setPosition(value)#
Position of the text.
- Property:
Can be read or written
- Return type:
[number, number, number]- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getRotation()#
- Text.setRotation(value)#
Rotation of the text as a quaternion.
- Property:
Can be read or written
- Return type:
[number, number, number, number]- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getFaceCamera()#
- Text.setFaceCamera(value)#
Whether the text turns to face the camera, in place of its
Drawing.Text.getRotation().- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getReferenceFrame()#
- Text.setReferenceFrame(value)#
Reference frame for the positions of the object.
- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getVisible()#
- Text.setVisible(value)#
Whether the object is visible.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.remove()#
Remove the object.
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getContent()#
- Text.setContent(value)#
The text string
- Property:
Can be read or written
- Return type:
string- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getFont()#
- Text.setFont(value)#
Name of the font
- Property:
Can be read or written
- Return type:
string- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.availableFonts()#
A list of all available fonts.
- Return type:
Arrayofstring- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getSize()#
- Text.setSize(value)#
Font size.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getCharacterSize()#
- Text.setCharacterSize(value)#
Character size.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getStyle()#
- Text.setStyle(value)#
Font style.
- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getColor()#
- Text.setColor(value)#
Set the color
- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getMaterial()#
- Text.setMaterial(value)#
Material used to render the object. Creates the material from a shader with the given name.
- Property:
Can be read or written
- Return type:
string- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getAlignment()#
- Text.setAlignment(value)#
Alignment.
- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Text.getLineSpacing()#
- Text.setLineSpacing(value)#
Line spacing.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph