文档

Unity Engine

Unity Engine

area

Indicates the portion of the screen that is currently covered by the on-screen keyboard.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Rect area { get; }

Remarks

On Android, this property returns a Rect with top-left axis origin. On devices with API levels earlier than 30, this property returns a zero
Rect
, that is
Rect(0,0,0,0)
. The returned
Rect
defines the actual rectangular area covered by the keyboard with coordinates measured from the top-left corner of the screen.