Component.camera Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.camera

var camera : Camera

Description

The Camera attached to this GameObject (null if there is none attached).

JavaScript
camera.fieldOfView = 40;