文档

Unity Engine

Unity Engine

AndroidWindowInsets.Type

Options for specifying different types of system UI elements that generate window insets.
阅读时间1 分钟最后更新于 1 个月前

Definition

[Flags]public enum AndroidWindowInsets.Type

Remarks

Use this enum with AndroidWindowInsets.Hide, AndroidWindowInsets.IsVisible, and AndroidWindowInsets.Show methods to retrieve and modify the current state of the status bar, navigation bar, or both at runtime.

Examples

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

Fields

Value

Description

NavigationBarsRepresents the area of the screen the system navigation elements occupy.
NoneNo inset type selected. No screen area is assigned for system UI elements.
StatusBarsRepresents the area of the screen the system status bar occupies at the top of the screen.