Application
.loadedLevelName
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Application
Application
.loadedLevelName
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
Application
All Members
Class Variables
absoluteURL
backgroundLoadingPriority
dataPath
isEditor
isLoadingLevel
isPlaying
isWebPlayer
levelCount
loadedLevel
loadedLevelName
persistentDataPath
platform
runInBackground
srcValue
streamedBytes
systemLanguage
targetFrameRate
temporaryCachePath
unityVersion
webSecurityEnabled
Class Functions
CancelQuit
CanStreamedLevelBeLoaded
CaptureScreenshot
ExternalCall
ExternalEval
GetStreamProgressForLevel
LoadLevel
LoadLevelAdditive
LoadLevelAdditiveAsync
LoadLevelAsync
OpenURL
Quit
RegisterLogCallback
RegisterLogCallbackThreaded
Delegates
LogCallback
static
var
loadedLevelName :
string
Description
The name of the level that was last loaded
(Read Only)
.
JavaScripts
JavaScript
C#
Boo
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
)