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

static var main : Camera

Description

The first enabled camera tagged "MainCamera" (Read Only).

Returns null if there is no such camera in the scene.