Documentation

Unity Engine

Download Unity

Unity Engine

pixelRect

Get the render rect for the Canvas.
Read time 1 minuteLast updated 5 hours ago

Definition

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.