Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


requestedOverlappingInsets

Requests which insets should overlap with the application window when the application starts.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static AndroidWindowInsetsType requestedOverlappingInsets { get; set; }

Remarks

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.

Examples

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; }}