The total number of levels available (Read Only).
// Loads a random levelApplication.LoadLevel (Random.Range(0, Application.levelCount-1));
using UnityEngine;using System.Collections;public class example : MonoBehaviour { void Example() { Application.LoadLevel(Random.Range(0, Application.levelCount - 1)); }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): def Example(): Application.LoadLevel(Random.Range(0, (Application.levelCount - 1)))