Application.loadedLevel Manual     Reference     Scripting  
Scripting > Runtime Classes > Application
Application.loadedLevel

static var loadedLevel : int

Description

The level index that was last loaded (Read Only).

JavaScripts
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
print(Application.loadedLevel);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
print(Application.loadedLevel)