Text::setLayer()
Moves the text to another layer: Layer.UI keeps it in place when the camera moves; any other layer puts it into the world, in front of the foreground.
Syntax
Java
.setLayer(layer)
Parameters
| Name | Data Type | Description |
|---|---|---|
| layer | Layer | the layer |
Return
void