Skip to content

Commit c4d0580

Browse files
modified by checking TestRunner scene name
1 parent 148821d commit c4d0580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/BossRoom/Scripts/Editor/SceneBootstrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class SceneBootstrapper
3434
const string k_LoadBootstrapSceneOnPlay = "Boss Room/Load Bootstrap Scene On Play";
3535
const string k_DoNotLoadBootstrapSceneOnPlay = "Boss Room/Don't Load Bootstrap Scene On Play";
3636

37-
const string k_TestRunnerObjectName = "Code-based tests runner";
37+
const string k_TestRunnerSceneName = "InitTestScene";
3838

3939
static bool s_StoppingAndStarting;
4040

@@ -167,7 +167,7 @@ static void EditorApplicationOnplayModeStateChanged(PlayModeStateChange obj)
167167

168168
static bool IsTestRunnerActive()
169169
{
170-
return GameObject.Find(k_TestRunnerObjectName);
170+
return EditorSceneManager.GetActiveScene().name.StartsWith(k_TestRunnerSceneName);
171171
}
172172
}
173173
}

0 commit comments

Comments
 (0)