Option for creating a label

Hierarchy

  • LabelOptions

Properties

color?: Color

Specify the color of the text (does not apply to SpriteFonts)

font?: Font

Specify a custom font

pos?: Vector
spriteFont?: SpriteFont

Optionally specify a sprite font, will take precedence over any other Font

text?: string

Specify the label text

x?: number
y?: number