Unity 2021.3 or higher. Just press the Add Component button on any GameObject that has a Rect Transform and select Safe Area Fitter.
通常のオブジェクトなどはTransformで座標やスケールを管理しますがUI系の座標などはRectTransformが使用されています。 RectTransform使用時にスクリプトを使ってオブジェクト移動などをさせる時はRectTransformを取得して値を変更させれば可能です。 using UnityEngine.UI ...
This library assists in applying the concept of Safe Areas to Unity UI. Safe Areas are used to prevent content from being obscured by specific parts of the display, such as notches, home buttons, etc.
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する