Sprite::setLayer()
Moves the sprite to another layer, in front of the sprites already there. A sprite in Layer.UI ignores the camera; its pen moves to the UI layer too.
Syntax
Java
.setLayer(layer)
Parameters
| Name | Data Type | Description |
|---|---|---|
| layer | Layer | the layer |
Return
void