Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Hide(Type)

Hides a set of windows that generate insets.
Read time 1 minuteLast updated 5 days ago

Definition

public void Hide(AndroidWindowInsets.Type type)

Parameters

type

The set of window insets to hide, as a bitwise combination of AndroidWindowInsets.Type values.

Remarks

Use this method to hide the system bars, allowing your application to use the available screen space when in full-screen mode.
This method has no effect on AndroidWindowInsets.Type.CaptionBar, because the system controls the visibility of the caption bar.

Examples

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