Interface TextOptions

Hierarchy

  • TextOptions

Properties

Properties

align?: number

A value between -1 and 1 that represents the alignment of multiple lines of text. -1 is aligned fully to the left, 1 is aligned fully to the right, and 0 is centered. Default 0.

anchor?: Vector2

The x/y position of the anchor relative to the text quad, on the range [-1, -1] (bottom left) to [1, 1] (top right). Default [0, 0].

angle?: number

The angle at which the text will be rotated around the anchor. Default 0.

color?: Vector4

The color of the text. Default [0, 0, 0, 1].

size?: number

The size of the text. Default 12.

Generated using TypeDoc