Expand description
built-in layer constants for common rendering needs. lower values are drawn first (behind), higher values are drawn last (in front).
Constants§
- BACKGROUND
- background layer — static backgrounds, parallax layers
- FOREGROUND
- foreground layer — effects, overlays, weather
- GAME
- game layer — game objects, characters, projectiles
- POST_
PROCESS - post-process layer — screen-space fullscreen overlays (flash, tint, fade). drawn after UI in screen space; ignores camera position and zoom.
- UI
- UI layer — HUD, menus, dialogue boxes