levelCount
The total number of levels available (Read Only).
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static int levelCount { get; }
Examples
using UnityEngine;class Example : MonoBehaviour{ void Start() { //Loads a random level Application.LoadLevel(Random.Range(0, Application.levelCount - 1)); }}