Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


renderingDisplaySize

Provides the pixel dimensions of the display area where the UI canvas is rendered.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public Vector2 renderingDisplaySize { get; }

Remarks

This size is typically determined by the Game view or the current screen resolution and is affected by the canvas's render mode, scaling, and display settings.
  • Screen Space - Overlay Canvases: Corresponds directly to the screen resolution.
  • Screen Space - Camera Canvases: Represents the screen area covered by the camera.
  • World Space Canvases: The RectTransform width and height.