Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Camera.allCamerasCount

Switch to Manual
static var allCamerasCount: int;
static int allCamerasCount;
static allCamerasCount as int

Description

The number of cameras in the current scene.

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

	var count : int = Camera.allCamerasCount;
	print ("We've got " + count + " cameras");