文档

Unity Engine

Unity Engine

loadedLevelName

The name of the level that was last loaded (Read Only).
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
警告
Deprecated. Use SceneManager to determine what scenes have been loaded
public static string loadedLevelName { get; }

Remarks

Note that this value is set only by Application.LoadLevel and Application.LoadLevelAsync. The
Additive
versions add content to the current level.