最後にロードされたレベルのインデックスを返します(RO)
print (Application.loadedLevel);
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { print(Application.loadedLevel); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: print(Application.loadedLevel)