Skip to content

Commit

Permalink
Merge pull request #2951 from AndrewLevada/master
Browse files Browse the repository at this point in the history
Search SDK path correctly on Unity 2020
  • Loading branch information
olehkuznetsov authored Oct 9, 2020
2 parents 6f8c6ec + c389f1d commit 4c9ef9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public static void Alert(string title, string message)
public static string GetAndroidSdkPath()
{
string sdkPath = EditorPrefs.GetString("AndroidSdkRoot");
#if UNITY_2019
#if UNITY_2019 || UNITY_2020
// Unity 2019.x added installation of the Android SDK in the AndroidPlayer directory
// so fallback to searching for it there.
if (string.IsNullOrEmpty(sdkPath) || EditorPrefs.GetBool("SdkUseEmbedded"))
Expand Down Expand Up @@ -780,4 +780,4 @@ private static int GetGPSVersion(string libProjPath)
return version;
}
}
}
}

0 comments on commit 4c9ef9f

Please sign in to comment.