Manual     Reference     Scripting  
  
Scripting > Runtime Classes > Camera Switch to Component   

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.