Version: 5.6
public static Camera[] allCameras ;

説明

シーン内の有効なすべてのカメラを返します。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public int count = Camera.allCameras.Length; void Example() { print("We've got " + count + " cameras"); } }