Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

PlayerSettings.Android.systemBarsBackground

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static AndroidSystemBarsBackground systemBarsBackground;

Description

Controls whether system bars have an opaque or transparent background.

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.

using UnityEditor;

public class ApplySystemBarsBackground { public static void Setup() { // Make system bars transparent for edge-to-edge rendering. PlayerSettings.Android.systemBarsBackground = AndroidSystemBarsBackground.Transparent; } }