Get the depth of the element, a larger number is further into the screen and elements with a smaller number will appear on top.
Gets the opacity of the text displayed by this element.
Returns a number in the range 0 to 1. 0 indicates fully transparent, 1 indicates fully opaque.
Get the rotation in radians.
Gets the size of the element in UI-size units. Note that it is not recommended to use this in combination with setSize2D.
Returns the text currently displayed by this text element.
Indicates whether this element is visible or not.
Sets the color of the text displayed by this element.
Set the depth of the UIElement, a larger number is further into the screen and elements with a smaller number will appear on top.
The depth layer to place the element on.
Sets the 2d size of the element in normalized coordinates, also known as UI-position units. For example, a size of (0.5, 1) would indicate an element that covers half the screen horizontally and the whole screen vertically. Note: this will affect the same internal state as setSize. Note: If the window/canvas changes size, you will need to call this again.
Sets the opacity of the text displayed by this element.
The desired opacity; a number in the range 0 to 1. 0 indicates fully transparent, 1 indicates fully opaque.
Sets the position of this element, in UI-position units.
The position, in UI-position units.
Set the rotation in radians.
Sets the size of the element in UI-size units. This will make the element uniformly scaled on both the X and Y axis.
Sets the 2d size of the element in UI-size units. For example, a size of (2, 1) would indicate an element that has the default height and twice the default width. Passing in (1, 1) is equivalent to calling setSize(1).
Sets the text that this element displays.
Sets the visibility of the element (i.e. hide or show) in the UI.
Use true to show the element or false to hide it.
Get the color of the text being displayed by this element.