Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

AndroidWindowInsets.Type.CaptionBar

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Represents the area of the screen the window caption bar occupies at the top of the application window.

The caption bar contains the window title and the window controls. It only appears when the application window is displayed in a freeform or desktop windowing environment, and is empty otherwise.

The system controls the visibility of the caption bar, so AndroidWindowInsets.Show and AndroidWindowInsets.Hide have no effect on it. To control whether your application window extends behind the caption bar, use AndroidWindowInsets.SetOverlapping instead.

Unlike the status and navigation bars, the caption bar requires Android 15 (API 35) or later for AndroidWindowInsets.SetAppearance and for a transparent AndroidWindowInsets.SetSystemBarsBackground.