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

optionalmaxWidth

maxWidth?: number

Specify a max width for the text in pixels, if specified the text will wrap.

Not supported in SpriteFont

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