Skip to content

TextOptions

Options for spawnText.

optional align?: "left" | "right" | "center"


optional alpha?: number


optional maxWidth?: number

Wraps lines wider than this many pixels at spaces, for dialog boxes and descriptions. A word wider than a whole line breaks where it must. \n still starts a new line. Default: no wrapping.


optional size?: number

Pixel size. Default: the size the font was loaded at.


optional tint?: number

0xRRGGBB. Default white.


optional x?: number

Top-left corner of the text block (or top-center / top-right with align).


optional y?: number


optional z?: number