ドキュメント

Unity Engine

Unity Engine

allCamerasCount

The number of cameras in the current Scene.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static int allCamerasCount { get; }

Remarks

Returns the size of the array that Camera.allCameras returns and the amount of cameras that Camera.GetAllCameras will fill.

Examples

using UnityEngine;public class ExampleScript : MonoBehaviour{ private int count; void Start() { count = Camera.allCamerasCount; print("We've got " + count + " cameras"); }}