Application翻译:^牛^魔王
- absoluteURL
- backgroundLoadingPriority
- CancelQuit
- CanStreamedLevelBeLoaded
- CaptureScreenshot
- dataPath
- ExternalCall
- ExternalEval
- GetStreamProgressForLevel
- internetReachability
- isEditor
- isLoadingLevel
- isPlaying
- isWebPlayer
- levelCount
- loadedLevelName
- loadedLevel
- LoadLevelAdditiveAsync
- LoadLevelAdditive
- LoadLevelAsync
- LoadLevel
- LogCallback
- OpenURL
- persistentDataPath
- platform
- Quit
- RegisterLogCallbackThreaded
- RegisterLogCallback
- runInBackground
- srcValue
- streamedBytes
- systemLanguage
- targetFrameRate
- temporaryCachePath
- unityVersion
- webSecurityEnabled
Application.loadedLevelName 加载的关卡名字
static var loadedLevelName : string
Description描述
The name of the level that was last loaded (Read Only).
最后加载的关卡的名字。(只读)
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
print(Application.loadedLevelName);
}
}
//打印当前场景名字
print (Application.loadedLevelName);
最后修改:2010年12月14日 Tuesday 21:36