[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/PlayerSettings.Android-systemBarsBehavior.html [Back]  [Original]

Unity - Scripting API: PlayerSettings.Android.systemBarsBehavior
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    PlayerSettings.Android.systemBarsBehavior

    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
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Switch to Manual
    public static AndroidSystemBarsBehavior systemBarsBehavior;

    Description

    Defines the behavior of system bars in your application.

    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.

    using UnityEditor;

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

    Web Proxy Viewer  |  New URL  |  Original Page