ドキュメント

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.