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 932b2a6 commit 2ff151fCopy full SHA for 2ff151f
MCPForUnity/Editor/Services/TestRunnerService.cs
@@ -227,6 +227,11 @@ private static void SaveDirtyScenesIfNeeded()
227
var scene = SceneManager.GetSceneAt(i);
228
if (scene.isDirty)
229
{
230
+ if (string.IsNullOrEmpty(scene.path))
231
+ {
232
+ McpLog.Warn($"[TestRunnerService] Skipping unsaved scene '{scene.name}': save it manually before running PlayMode tests.");
233
+ continue;
234
+ }
235
try
236
237
EditorSceneManager.SaveScene(scene);
0 commit comments