Constructor
new Label(text, position, parent)
Parameters:
Name | Type | Description |
---|---|---|
text |
label text | |
position |
Vector3 to put label at - center of the label! | |
parent |
optional parent node |
- Source:
Classes
Members
background
default none (null), may be "transparent", "white", "rgba(50,50,200,0.5)" etc
- Source:
border
background border thickness, default 0 (no border)
- Source:
color
text color, default white
- Source:
cornerRadius
background corner radius, default 0
- Source:
fontRatio
hack for calculating position/required texture size
- Source:
fontRatio
hack for calculating position
- Source:
height
Label height, default 1
- Source:
horizontalAlignment
horizontal text alignment, default left
- Source:
parent
Parent node
- Source:
position
Label position
- Source:
text
Label text
- Source:
verticalAlignment
vertical text alignment, default top
- Source:
Methods
setBackground()
Change background color after display()
- Source:
setColor()
Change text color after display()
- Source:
setText()
Set text after display()
- Source: