LittleJS 1.28.0

UISystem

UIText

UIText - A UI object that displays text

Extends UIObject

Constructor

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

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:1370
text : stringuiSystem.js:1359

The text shown