Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeposition | The area to draw the camera within in GUI coordinates. |
camera | The camera to draw. |
drawMode | How the camera is drawn (textured, wireframe, etc.). |
Draws a camera inside a rectangle.
This function alse sets Camera.current to camera
. It sets the camera's pixelRect to position
.