UISystem. UIText

UIText - A UI object that displays text

Constructor

new UIText(posopt, sizeopt, textopt, alignopt, fontopt)

Create a UIText object

Parameters:
NameTypeAttributesDefaultDescription
posVector2<optional>
sizeVector2<optional>
textstring<optional>
align'left' | 'center' | 'right'<optional>
center
fontstring<optional>
uiSystem.defaultFont

Extends

  • UIObject

Members

gradientColor :Color|undefined

Type:
  • Color | undefined