Text#
- public class Text#
A text label. See
Panel.addText(String, boolean).- RectTransform getRectTransform()#
The rect transform for the text.
- boolean getVisible()#
- void setVisible(boolean value)#
Whether the UI object is visible.
- int getSize()#
- void setSize(int value)#
Font size.
- TextAnchor getAlignment()#
- void setAlignment(TextAnchor value)#
Alignment.
- float getLineSpacing()#
- void setLineSpacing(float value)#
Line spacing.
- void remove()#
Remove the UI object.
- public enum FontStyle#
Font style.
- public enum TextAlignment#
Text alignment.
- public TextAlignment LEFT#
Left aligned.
- public TextAlignment RIGHT#
Right aligned.
- public TextAlignment CENTER#
Center aligned.
- public enum TextAnchor#
Text alignment.
- public TextAnchor LOWER_CENTER#
Lower center.
- public TextAnchor LOWER_LEFT#
Lower left.
- public TextAnchor LOWER_RIGHT#
Lower right.
- public TextAnchor MIDDLE_CENTER#
Middle center.
- public TextAnchor MIDDLE_LEFT#
Middle left.
- public TextAnchor MIDDLE_RIGHT#
Middle right.
- public TextAnchor UPPER_CENTER#
Upper center.
- public TextAnchor UPPER_LEFT#
Upper left.
- public TextAnchor UPPER_RIGHT#
Upper right.