playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.46k stars 963 forks source link

NullReferenceException when saving progress to the cloud #3119

Open Atennop1 opened 2 years ago

Atennop1 commented 2 years ago

Description of what the bug is: When trying to download progress from the Google Play cloud, a NullReferenceException occurs.

Steps to reproduce the behavior:

  1. Copy code from documentation
  2. Call the OpenSavedGame method
  3. Get error

Expected behavior: Getting data from the Google Play Services cloud for further use.

Observed behavior: Getting a NullReferenceException when trying to load data from the cloud.

Unity Version: 2020.3.12f1 Google Play Games Plugin version: 0.10.14

Below is a screenshot of the code that is causing the error. savedGameClient is null. Ошибка

smile616 commented 2 years ago

Hey @AtennopVer, could you please attache a stack trace for the NullReferenceException ? Thanks

Atennop1 commented 2 years ago

@smile616 Do you mean this? dd

If yes, then: ss ssdd sdsd

Atennop1 commented 2 years ago

I wrote this code according to the guide, so this is probably a very stupid mistake that lies on the surface