Application.loadedLevelName

static var loadedLevelName : String

Description

The name of the level that was last loaded (Read Only).

JavaScript
print (Application.loadedLevelName);

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
print(Application.loadedLevelName)