Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


pixelRect

Get the render rect for the Canvas.
Read time 1 minuteLast updated 6 days ago

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.