文档

Unity Engine

Unity Engine

sceneCount

The current number of Scenes.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static int sceneCount { get; }

Remarks

Returns the current number Scenes. This includes the Scenes that are currently loading or unloading. For the number of currently loaded Scenes see SceneManager.loadedSceneCount.