[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/AndroidWindowInsetsType.html [Back]  [Original]

Unity - Scripting API: AndroidWindowInsetsType
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    AndroidWindowInsetsType

    enumeration

    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

    Description

    Options for specifying different types of system UI elements that generate window insets.

    Use this enum with PlayerSettings.Android.requestedVisibleInsets to specify whether the status bar, navigation bar, both, or none should be visible by default when your application starts.

    using UnityEditor;

    public class ApplyInsets { public static void Setup() { // Request status and navigation bars to be visible for the application. PlayerSettings.Android.requestedVisibleInsets = AndroidWindowInsetsType.NavigationBars | AndroidWindowInsetsType.StatusBars; } }

    Properties

    Property Description
    NoneNo inset type selected.
    StatusBarsRepresents the area of the screen the system status bar occupies at the top of the screen.
    NavigationBarsRepresents the area of the screen the system navigation elements occupy.

    Web Proxy Viewer  |  New URL  |  Original Page