Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


systemBarsBackground

Controls whether system bars have an opaque or transparent background.
Read time 1 minuteLast updated 6 days ago

Definition

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

Remarks

Use this property to configure the system bars background behavior at build time. Set to
Transparent
when insets are overlapping with the application window to allow game content to show through the system bars.
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 ApplySystemBarsBackground{ public static void Setup() { // Make system bars transparent for edge-to-edge rendering. PlayerSettings.Android.systemBarsBackground = AndroidSystemBarsBackground.Transparent; }}