文档

Unity Engine

Unity Engine

cameraViewport

The position and size of the area that the camera renders.
阅读时间1 分钟最后更新于 1 个月前

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.