This version of Unity is unsupported.
Removed in version 2018.4.36

Component.camera

Obsolete Property camera has been deprecated. Use GetComponent<Camera>() instead. (UnityUpgradable). public Component camera;

Description

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

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<Camera>().fieldOfView = 40; } }