Application.loadedLevel

static var loadedLevel : int

Description

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

JavaScript
    print (Application.loadedLevel);

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
print(Application.loadedLevel)