AndroidSystemBarsBehavior
Options for controlling the behavior of system bars, such as the status and navigation bars.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Enum
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public enum AndroidSystemBarsBehavior : uint
Remarks
These options determine how system gestures, such as swiping from screen edges, reveal the system bars when hidden. Use this enum with PlayerSettings.Android.systemBarsBehavior to select the system bars behavior for your application window.
Examples
using UnityEditor;public class ApplySystemBarsBehavior{ public static void Setup() { PlayerSettings.Android.systemBarsBehavior = AndroidSystemBarsBehavior.ShowTransientBarsBySwipe; }}
Fields
Value | Description |
|---|---|
| Default | Reveals the system bars with system gestures, such as swiping from the edge of the screen where the bar is hidden. |
| ShowTransientBarsBySwipe | Reveals the system bars temporarily with system gestures, such as swiping from the edge of the screen where the bar is hidden. |