Camera.orthographic Manual     Reference     Scripting  
Scripting > Runtime Classes > Camera
Camera.orthographic

var orthographic : bool

Description

Is the camera orthographic (true) or perspective (false)?

When ortho is true, camera's viewing volume is defined by orthographicSize.
When orthographic is false, camera's viewing volume is defined by fieldOfView.

// Set the camera to be orthograpghic
camera.orthographic = true;

// Set the main camera to be orthographic
Camera.main.orthographic = true;

See Also: camera component