Requests which insets should overlap with the application window when the application starts.
Use this property to enable edge-to-edge rendering by allowing the application window to extend behind system bars. When an inset is overlapping, the application window isn't resized to avoid it, and Screen.safeArea excludes the area covered by the overlapping inset.
Note: Only supported on Android 11 (API 30) and later. Has no effect on Android 10 (API 29) or earlier versions.
Additional resources: AndroidWindowInsetsType, Screen.safeArea.
using UnityEditor;
public class ApplyOverlappingInsets { public static void Setup() { // Allow the application window to extend behind both status and navigation bars. PlayerSettings.Android.requestedOverlappingInsets = AndroidWindowInsetsType.StatusBars | AndroidWindowInsetsType.NavigationBars; } }