Understanding Overlay Layers and Positions

Learn about OverlayLayer and OverlayPosition enums and when to use each option.

2 steps
Progress1 / 2 steps
1

OverlayLayer Options

Step 1 of 2

Objective

Learn about different overlay layers.

Explanation

OverlayLayer determines when your overlay renders: - UNDER_WIDGETS - below game widgets - ABOVE_WIDGETS - above widgets but below scene - ABOVE_SCENE - above game scene (most common) - ABOVE_MAP - above minimap - ABOVE_ALL - above everything Use ABOVE_SCENE for most overlays.

Your Code

java
AdvertisementSet slotId on <AdUnit /> to show ads.