Removed in version 2019.1.14

Component.camera

Obsolete 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; } }

Did you find this page useful? Please give it a rating: