LittleJS 1.31.0

UISystem

UIText

UIText - A UI object that displays text

Extends UIObject

Constructor

new UIText(pos, size, text, align, font)uiSystem.js:1426

Create a UIText object

pos Vector2 optional
size Vector2 optional
text string optional
align 'left'|'center'|'right' optional, default center
font string optional, default uiSystem.defaultFont

Members

Inherited from UIObject

Members

gradientColor : Color|undefineduiSystem.js:1456
text : stringuiSystem.js:1445

The text shown