mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 22:27:45 +08:00
Update SceneHandler.cs
This commit is contained in:
parent
a3fcac1acb
commit
5bb612cb5a
@ -61,9 +61,9 @@ namespace UnityExplorer.Core
|
|||||||
public static event Action<ReadOnlyCollection<Scene>> OnLoadedScenesChanged;
|
public static event Action<ReadOnlyCollection<Scene>> OnLoadedScenesChanged;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Equivalent to <see cref="SceneManager.sceneCount"/> + 1, to include 'DontDestroyOnLoad'.
|
/// Equivalent to <see cref="SceneManager.sceneCount"/> + 2, to include 'DontDestroyOnLoad'.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static int LoadedSceneCount => SceneManager.sceneCount + 1;
|
public static int LoadedSceneCount => SceneManager.sceneCount + 2;
|
||||||
|
|
||||||
// Cached on startup, will never change during runtime (and generally doesn't change between Unity versions either)
|
// Cached on startup, will never change during runtime (and generally doesn't change between Unity versions either)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user