Handles.DrawCamera

static function DrawCamera (position : Rect, camera : Camera, drawMode : DrawCameraMode = DrawCameraMode.Normal) : void

Parameters

NameDescription
position The area to draw the camera within in GUI coordinates.
camera The camera to draw.
drawMode How the camera is drawn (textured, wireframe, etc.).

Description

Draws a camera inside a rectangle.

This function alse sets Camera.current to camera. It sets the camera's pixelRect to position.

Note: Use HandleUtility.GetHandleSize where you might want to have constant screen-sized handles.