How to stop EditorSceneManager.playModeStartScene when running PlayMode tests?
Our project uses EditorSceneManager.playModeStartScene, which is great and saves us a lot of time (so that we don't have to be constantly switching to the game's root scene and in order to test it).
We also have PlayMode tests. They obviously load a scene on startup.
Our problem is that, when you run the PlayMode tests, EditorSceneManager.playModeStartScene
kicks in, and the tests never get run... (until you turn off the EditorSceneManager.playModeStartScene
tooling) because the default scene gets loaded up instead.
It would be great if EditorSceneManager.playModeStartScene
was ignored only when running PlayMode tests inside the Editor. Is that possible?