@@ -92,8 +92,10 @@ static void Update()
9292 PlayerSettings . defaultScreenHeight != recommended_DefaultScreenHeight ) ) ||
9393 ( ! EditorPrefs . HasKey ( ignore + runInBackground ) &&
9494 PlayerSettings . runInBackground != recommended_RunInBackground ) ||
95+ #if ! UNITY_2019_1_OR_NEWER
9596 ( ! EditorPrefs . HasKey ( ignore + displayResolutionDialog ) &&
9697 PlayerSettings . displayResolutionDialog != recommended_DisplayResolutionDialog ) ||
98+ #endif
9799 ( ! EditorPrefs . HasKey ( ignore + resizableWindow ) &&
98100 PlayerSettings . resizableWindow != recommended_ResizableWindow ) ||
99101 ( ! EditorPrefs . HasKey ( ignore + visibleInBackground ) &&
@@ -320,6 +322,7 @@ public void OnGUI()
320322 GUILayout . EndHorizontal ( ) ;
321323 }
322324
325+ #if ! UNITY_2019_1_OR_NEWER
323326 if ( ! EditorPrefs . HasKey ( ignore + displayResolutionDialog ) &&
324327 PlayerSettings . displayResolutionDialog != recommended_DisplayResolutionDialog )
325328 {
@@ -343,6 +346,7 @@ public void OnGUI()
343346
344347 GUILayout. EndHorizontal ( ) ;
345348 }
349+ #endif
346350
347351 if ( ! EditorPrefs . HasKey ( ignore + resizableWindow ) &&
348352 PlayerSettings . resizableWindow != recommended_ResizableWindow )
@@ -593,8 +597,10 @@ public void OnGUI()
593597 }
594598 if ( ! EditorPrefs . HasKey ( ignore + runInBackground ) )
595599 PlayerSettings. runInBackground = recommended_RunInBackground ;
600+ #if ! UNITY_2019_1_OR_NEWER
596601 if ( ! EditorPrefs . HasKey ( ignore + displayResolutionDialog ) )
597602 PlayerSettings. displayResolutionDialog = recommended_DisplayResolutionDialog ;
603+ #endif
598604 if ( ! EditorPrefs . HasKey ( ignore + resizableWindow ) )
599605 PlayerSettings . resizableWindow = recommended_ResizableWindow ;
600606 if ( ! EditorPrefs . HasKey ( ignore + visibleInBackground ) )
@@ -648,8 +654,10 @@ public void OnGUI()
648654 EditorPrefs. SetBool ( ignore + defaultScreenSize , true ) ;
649655 if ( PlayerSettings . runInBackground != recommended_RunInBackground )
650656 EditorPrefs. SetBool ( ignore + runInBackground , true ) ;
657+ #if ! UNITY_2019_1_OR_NEWER
651658 if ( PlayerSettings . displayResolutionDialog != recommended_DisplayResolutionDialog )
652659 EditorPrefs. SetBool ( ignore + displayResolutionDialog , true ) ;
660+ #endif
653661 if ( PlayerSettings . resizableWindow != recommended_ResizableWindow )
654662 EditorPrefs. SetBool ( ignore + resizableWindow , true ) ;
655663 if ( PlayerSettings . visibleInBackground != recommended_VisibleInBackground )
0 commit comments