Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

AndroidWindowInsets.Hide

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

Declaration

public Void Hide(UnityEngine.Android.AndroidWindowInsets/Type type);

Description

Hides a set of windows that generate insets.

Use this method to hide the system bars, allowing your application to use the available screen space when in full-screen mode.

Additional resources: AndroidApplication.onWindowInsetsChanged, AndroidApplication.currentWindowInsets, Type.

using UnityEngine;
using UnityEngine.Android;

public class Controller : MonoBehaviour { public void Start() { AndroidApplication.currentWindowInsets.Hide(AndroidWindowInsets.Type.NavigationBars | AndroidWindowInsets.Type.StatusBars); } }