From 56af1c8e5550c2f3844592380c108219215ccd11 Mon Sep 17 00:00:00 2001 From: dsmirnov Date: Mon, 26 Oct 2020 17:12:24 +0300 Subject: [PATCH] Fix "non-load achieve image" bug for unity 2017.1 or newer --- .../GooglePlayGames/ISocialPlatform/PlayGamesAchievement.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesAchievement.cs b/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesAchievement.cs index 278535df4..1e2f36305 100644 --- a/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesAchievement.cs +++ b/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesAchievement.cs @@ -132,11 +132,12 @@ private Texture2D LoadImage() if (!string.IsNullOrEmpty(url)) { if (mImageFetcher == null || mImageFetcher.url != url) - { + { #if UNITY_2017_1_OR_NEWER mImageFetcher = UnityWebRequestTexture.GetTexture(url); + mImageFetcher.SendWebRequest(); #else - mImageFetcher = new WWW(url); + mImageFetcher = new WWW(url); #endif mImage = null; }