ドキュメント

Unity Engine

Unity Engine

GetOverlapping()

Returns which insets are currently configured to overlap with the application window.
読み終わるまでの所要時間 1 分最終更新 21日前

Definition

public AndroidWindowInsets.Type GetOverlapping()

Returns

Type

Description

TypeThe bitmask of inset types that currently overlap with the application window.

Remarks

Returns a bitmask of inset types that are currently overlapping. When an inset is overlapping, the application window extends behind it and Screen.safeArea excludes the area it covers.

Examples

using UnityEngine;using UnityEngine.Android;public class Controller : MonoBehaviour{ public void Start() { var overlapping = AndroidApplication.currentWindowInsets.GetOverlapping(); Debug.Log("Status bar overlapping: " + overlapping.HasFlag(AndroidWindowInsets.Type.StatusBars)); Debug.Log("Navigation bar overlapping: " + overlapping.HasFlag(AndroidWindowInsets.Type.NavigationBars)); }}