play-games-plugin-for-unity
play-games-plugin-for-unity copied to clipboard
GPGS ShowLeaderboardUI not working after LoadSceneAsync
Handle all GPGS functionality in a Class with Singleton by DontDestroyOnLoad, after that when you load another scene by LoadSceneAsync you cant show leaderboard by ShowLeaderboardUI
To Reproduce Steps to reproduce the behavior: Create Class That Handle GPGS Functions(Authentication, Showleaderbard etc). Make this class Singleton and take GameObject to DontDestroyOnLoad First call of ShowLeaderboardUI will work success Try LoadSceneAsync and load another scene ShowLeaderboardUI will never works as intended
Expected behavior Calling ShowLeaderboardUI will always works as intended and shows Leaderboard UI.
Observed behavior ShowLeaderboardUI not working and Cant see Leaderboard UI Again
Versions
- Unity version: 2021.2.7f1
- Google Play Games Plugin for Unity version: v11.01