File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Assets/BossRoom/Scripts/Editor Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ public class SceneBootstrapper
34
34
const string k_LoadBootstrapSceneOnPlay = "Boss Room/Load Bootstrap Scene On Play" ;
35
35
const string k_DoNotLoadBootstrapSceneOnPlay = "Boss Room/Don't Load Bootstrap Scene On Play" ;
36
36
37
+ const string k_TestRunnerSceneName = "InitTestScene" ;
38
+
37
39
static bool s_StoppingAndStarting ;
38
40
39
41
static string BootstrapScene
@@ -99,6 +101,11 @@ static void DisableDoNotLoadBootstrapSceneOnPlay()
99
101
100
102
static void EditorApplicationOnplayModeStateChanged ( PlayModeStateChange obj )
101
103
{
104
+ if ( IsTestRunnerActive ( ) )
105
+ {
106
+ return ;
107
+ }
108
+
102
109
if ( ! LoadBootstrapScene )
103
110
{
104
111
return ;
@@ -157,5 +164,10 @@ static void EditorApplicationOnplayModeStateChanged(PlayModeStateChange obj)
157
164
}
158
165
}
159
166
}
167
+
168
+ static bool IsTestRunnerActive ( )
169
+ {
170
+ return EditorSceneManager . GetActiveScene ( ) . name . StartsWith ( k_TestRunnerSceneName ) ;
171
+ }
160
172
}
161
173
}
You can’t perform that action at this time.
0 commit comments