Skip to main content

LabelOptions

Option for creating a label

Index

Properties

optionalcolor

color?: Color

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

optionalfont

font?: Font

Specify a custom font

optionalpos

pos?: Vector

optionalspriteFont

spriteFont?: SpriteFont

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

optionaltext

text?: string

Specify the label text

optionalx

x?: number

optionaly

y?: number