Skip to content

Text3D

Text3D allows for placement of text in the world.

Inherits DynamicInstance

Properties

Color : Color

Specifies the color of the text.

Example

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

FaceCamera : boolean

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

Example

text.FaceCamera = true

Font : TextFontPreset

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

FontSize : float

Specifies the size of the font.

Example

text.FontSize = 64

HorizontalAlignment : HorizontalAlignment

Specifies the horizontal alignment of the text.

Example

text.HorizontalAlignment = HorizontalAlignment.Left

Text : string

Specifies the text to display.

Example

text.Text = "Hello world!"

VerticalAlignment : VerticalAlignment

Specifies the vertical alignment of the text.

Example

text.VerticalAlignment = VerticalAlignment.Middle