기술 자료

Unity Engine

Unity Engine

levelCount

The total number of levels available (Read Only).
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
경고
Deprecated. Use SceneManager.sceneCountInBuildSettings
public static int levelCount { get; }

Examples

using UnityEngine;class Example : MonoBehaviour{ void Start() { //Loads a random level Application.LoadLevel(Random.Range(0, Application.levelCount - 1)); }}