This version of Unity is unsupported.

Canvas.renderingDisplaySize

Switch to Manual
public Vector2 renderingDisplaySize;

Description

Returns the canvas display size based on the selected render mode and target display.