The Camera attached to this GameObject (Read Only). (Null if there is none attached).
// Use GetComponent to access the camera var other : GameObject; var cam = other.GetComponent.<Camera>(); cam.fieldOfView = 45;
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { public GameObject other; public Camera cam = other.GetComponent<Camera>(); void Example() { cam.fieldOfView = 45; } }