Options for specifying different types of system UI elements that generate window insets.
Use this enum with AndroidWindowInsets.Hide, AndroidWindowInsets.IsVisible, and AndroidWindowInsets.Show methods to retrieve and modify the current state of the status bar, navigation bar and caption bar at runtime.
using UnityEngine; using UnityEngine.Android;
public class Controller : MonoBehaviour { public void Start() { AndroidApplication.currentWindowInsets.Show(AndroidWindowInsets.Type.StatusBars | AndroidWindowInsets.Type.NavigationBars); } }
| Property | Description |
|---|---|
| None | No inset type selected. No screen area is assigned for system UI elements. |
| StatusBars | Represents the area of the screen the system status bar occupies at the top of the screen. |
| NavigationBars | Represents the area of the screen the system navigation elements occupy. |
| CaptionBar | Represents the area of the screen the window caption bar occupies at the top of the application window. |