기술 자료

Unity Engine

Unity Engine

allCamerasCount

The number of cameras in the current Scene.
읽는 시간 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"); }}