文档

Unity Engine

Unity Engine

AndroidWindowInsetsType

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

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
[Flags]public enum AndroidWindowInsetsType : uint

Remarks

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.

Examples

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; }}

Fields

Value

Description

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