Type The bitmask of inset types that currently overlap with the application window.
Returns which insets are currently configured to overlap with the application window.
Returns a bitmask of inset types that are currently overlapping. When an inset is overlapping, the application window extends behind it and Screen.safeArea excludes the area it covers.
using UnityEngine; using UnityEngine.Android;
public class Controller : MonoBehaviour { public void Start() { var overlapping = AndroidApplication.currentWindowInsets.GetOverlapping(); Debug.Log("Status bar overlapping: " + overlapping.HasFlag(AndroidWindowInsets.Type.StatusBars)); Debug.Log("Navigation bar overlapping: " + overlapping.HasFlag(AndroidWindowInsets.Type.NavigationBars)); } }