play-games-plugin-for-unity icon indicating copy to clipboard operation
play-games-plugin-for-unity copied to clipboard

GPGS ShowLeaderboardUI not working after LoadSceneAsync

Open Imperious0 opened this issue 2 years ago • 0 comments

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

Imperious0 avatar Jun 10 '22 16:06 Imperious0