Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


systemBarsBehavior

Defines the behavior of system bars in your application.
Read time 1 minuteLast updated 6 days ago

Definition

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

Remarks

Use this property to specify how the system bars, such as the status and navigation bars, respond to system gestures in your application.
Note: Only supported on Android 11 (API 30) and later. Has no effect on Android 10 (API 29) or earlier versions.
The following code example demonstrates how to configure the system bars to display temporarily when swiping from the screen edges.

Examples

using UnityEditor;public class ApplySystemBarsBehavior{ public static void Setup() { PlayerSettings.Android.systemBarsBehavior = AndroidSystemBarsBehavior.ShowTransientBarsBySwipe; }}