We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e719c8c commit 3baeee6Copy full SHA for 3baeee6
Assets/DevLocker/Utils/SceneReference.cs
@@ -84,8 +84,16 @@ public string ScenePath
84
/// </summary>
85
public string SceneName => Path.GetFileNameWithoutExtension(ScenePath);
86
87
+ /// <summary>
88
+ /// Is scene actually set to this instance?
89
+ /// </summary>
90
public bool IsEmpty => string.IsNullOrEmpty(ScenePath);
91
92
93
+ /// Get the index of the scene in the build settings.
94
95
+ public int BuildIndex => UnityEngine.SceneManagement.SceneUtility.GetBuildIndexByScenePath(ScenePath);
96
+
97
public SceneReference() { }
98
99
public SceneReference(string scenePath)
0 commit comments