Skip to main content

Text3D

Inherits from DynamicInstance

Text3D allows for placement of text in the world.


Summary

Properties


Properties

Color

Text3D.Color: Color

Specifies the color of the text.

Example

-- Sets the text color to a random color
text.Color = Color.Random()

FaceCamera

Text3D.FaceCamera: bool

Determines whether or not the text should be facing the camera or not.

Example

text.FaceCamera = true

Font

Text3D.Font: TextFontPreset

Specifies the font of the text (using the TextFontPreset enum)


FontSize

Text3D.FontSize: float

Specifies the size of the font.

Example

text.FontSize = 64

HorizontalAlignment

Text3D.HorizontalAlignment: HorizontalAlignment

Specifies the horizontal alignment of the text.

Example

text.HorizontalAlignment = HorizontalAlignment.Left

Text

Text3D.Text: string

Specifies the text to display.

Example

text.Text = "Hello world!"

VerticalAlignment

Text3D.VerticalAlignment: VerticalAlignment

Specifies the vertical alignment of the text.

Example

text.VerticalAlignment = VerticalAlignment.Middle