文档

Unity Engine

Unity Engine

pixelRect

Get the render rect for the Canvas.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public Rect pixelRect { get; }

Remarks

If in overlay mode this will be the screen dimensions. If in world mode this will be the camera screen viewport rect.