Skip to content

Commit

Permalink
fix: disabling welcome window before unity 2020.1 (MirageNet#662)
Browse files Browse the repository at this point in the history
* fix: disabling welcome window before unity 2020.1

adding UNITY_2020_1_OR_NEWER before opening welcome window because UIElements gives errors in ealier versions

* fixing spelling mistake
  • Loading branch information
James-Frowen committed Mar 6, 2021
1 parent 23e20f2 commit a527af4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Mirage/Editor/WelcomeWindow/WelcomeWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ private static void ShowWindowOnFirstStart()
{
EditorPrefs.SetString(screenToOpenKey, ShowChangeLog ? "ChangeLog" : "Welcome");

#if UNITY_2020_1_OR_NEWER
OpenWindow();
#else
if (logger.LogEnabled()) logger.Log($"WelcomeWindow not supported in {Application.unityVersion}, it is only supported in Unity 2020.1 or newer");
#endif
}
}

Expand Down

0 comments on commit a527af4

Please sign in to comment.