文档

Unity Engine

Unity Engine

Show(Type)

Displays a set of windows that generate insets on screen.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void Show(AndroidWindowInsets.Type type)

Parameters

type

Remarks

Use this method to display the system bars, such as the status and navigation bars at runtime.
The following code example demonstrates how to display both the status and navigation bars at runtime.

Examples

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