public static void DrawCamera (Rect position, Camera camera);
public static void DrawCamera (Rect position, Camera camera, DrawCameraMode drawMode= UnityEditor.DrawCameraMode.Normal);

Parameters

position要在 GUI 坐标中绘制摄像机的区域。
camera要绘制的摄像机。
drawMode摄像机的绘制方式(纹理化、线框等)。

Description

在矩形内绘制一个摄像机。

This function also sets Camera.current to camera. It sets the camera's pixelRect to position, but in screen coordinates. This might be different from GUI coordinates if you are using a high DPI display.

注意:如果您希望拥有恒定屏幕大小的手柄,请使用 HandleUtility.GetHandleSize

另请参阅 EditorGUIUtility.pixelsPerPoint