Application.loadedLevelNamestatic var loadedLevelName : StringDescriptionThe name of the level that was last loaded (Read Only).
JavaScripts
print (Application.loadedLevelName);
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { print(Application.loadedLevelName); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): print(Application.loadedLevelName) |
