Skip to content

Commit 74eed75

Browse files
author
David Kline
authored
Merge pull request #7122 from Troy-Ferrell/users/trferrel/configurator-window
Delay initialization of project configurator window
2 parents 080b3f2 + b9fe029 commit 74eed75

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Assets/MixedRealityToolkit/Inspectors/Setup/MixedRealityEditorSettings.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ static MixedRealityEditorSettings()
2727
// Detect when we enter player mode so we can try checking for optimal configuration
2828
EditorApplication.playModeStateChanged += OnPlayStateModeChanged;
2929

30+
// Subscribe to editor application update which will call us once the editor is initialized and running
31+
EditorApplication.update += OnInit;
32+
}
33+
34+
private static void OnInit()
35+
{
36+
// We only want to execute once to initialize, unsubscribe from update event
37+
EditorApplication.update -= OnInit;
38+
3039
ShowProjectConfigurationDialog();
3140
}
3241

0 commit comments

Comments
 (0)