お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseReturns all enabled cameras in the scene.
var count : int = Camera.allCameras.Length; print ("We've got " + count + " cameras");
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public int count = Camera.allCameras.Length; void Example() { print("We've got " + count + " cameras"); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): public count as int = Camera.allCameras.Length def Example() as void: print((('We\'ve got ' + count) + ' cameras'))