Search Unity

Saving game progress in GameCenter

Discussion in 'Editor & General Support' started by Archi_16, Sep 9, 2021.

  1. Archi_16

    Archi_16

    Joined:
    Apr 7, 2017
    Posts:
    87
    Hello. I need to save users game progress by using GameCenter.
    In unity docs I found Social class and GameCenterPlatform class.
    But cant find information how to save the game progress(with some data)
    Is it possible to do it with these classes?

    What about android?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,692
    I don't believeGameCenter stores progress on Apple.

    I believe iCloud can be configured to do this.

    There are iCloud packages you can get off the asset store to streamline this.

    Not sure what the state of back-end saving is in Android.

    Personally there is no way I would even consider something from Apple AND Google, because then I would need to maintain both, which is the entire point of getting away from their miserable dirty platform-specific laundry by using Unity.

    I would either make my own service with Heroku, Gamesparks, or any one of those other types of service. But integrating that sort of cloud service is a pretty big technical engineering lift with a LOT of things that can go wrong along the way.
     
  3. Archi_16

    Archi_16

    Joined:
    Apr 7, 2017
    Posts:
    87
    I mean for Android there is google play services plugin that can save gamedata. but what about Unity-s classes that i mentioned, are they work with Android as well?

    Can you share assets links that you mentioned?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,692
    I don't keep links. Have you heard of google?

    I would never write code for Google only using those classes. Might be possible, I don't know what's involved and I would start with google.