Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


cameraViewport

The position and size of the area that the camera renders.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public Rect cameraViewport { get; }

Remarks

This returns a rect. The rect accounts for any offset that Overlay toolbars introduce.