fix: append to Build Settings instead of overwrite, add Build All Scenes tool
This commit is contained in:
1 parent
9d2a043d3f
commit
d8e355de2b
8 files changed
+71
-8
No files matched your search
@@ -92,7 +92,15 @@ namespace CommanderAILab.UI
|
||||
|
||||
private void LoadScene(string sceneName)
|
||||
{
|
||||
if (isConnected) SceneManager.LoadScene(sceneName);
|
||||
if (!isConnected) return;
|
||||
try
|
||||
{
|
||||
SceneManager.LoadScene(sceneName);
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Debug.LogError($"Failed to load scene '{sceneName}': {e.Message}. Is it added to Build Settings?");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user