Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Is UGS right for me? Has anyone used it while supporting offline gameplay?

Discussion in 'Unity Gaming Services General Discussion' started by hiddentldr, Aug 1, 2023.

  1. hiddentldr

    hiddentldr

    Joined:
    Jul 17, 2018
    Posts:
    6
    I'm developing on a game in Unity that will be released on mobile (Android first with a possible iOS release in the future). This will be a first time for me implementing any online functionality and I'd like to get some perspective about my options.

    Basically my feature requirements are:
    • cloud save:
      • player can log in on any device, their progress is backed up in the cloud
      • money (both normal and premium currencies)
      • in-game purchases
    • rewarded ads
    • game should be able to work offline with latest known data, overwrite backend data if launching game with newer local data
    How well can UGS handle these? My main concern is implementing a system that can support offline gameplay and sync the local and cloud saves after offline play. Has anyone done something like this with UGS? How hard/complicated would it be?
     
  2. TomTheMan59

    TomTheMan59

    Joined:
    Mar 8, 2021
    Posts:
    298
    Just save your data to persistent path for local saves. Cloud save is for cloud, not local.
     
  3. hiddentldr

    hiddentldr

    Joined:
    Jul 17, 2018
    Posts:
    6
    I clearly stated that I need cloud save
     
  4. TomTheMan59

    TomTheMan59

    Joined:
    Mar 8, 2021
    Posts:
    298
    Then use cloud save? Cloud save is not local save, I don’t understand the confusion. Have you read the docs yet? Those might be be a better start then the forums. ;)

    https://docs.unity.com/ugs/en-us/manual/cloud-save/manual#
     
  5. hiddentldr

    hiddentldr

    Joined:
    Jul 17, 2018
    Posts:
    6
    Yeah I've read the docs! I was just curious if anyone had some experience using UGS Cloud Save while also supporting offline gameplay (syncing up progress when connection is available, etc.)
     
  6. IainUnity3D

    IainUnity3D

    Unity Technologies

    Joined:
    Oct 5, 2022
    Posts:
    12
    Hi there!

    Thanks for asking about this. Cloud Save can be used to store Data (Key/Value) and, as of v2.2.1, also Files up to 1GB. As noted, it's online only though.

    There is a bit of a documentation gap there currently - we don't have a guide that helps illustrate how best to use Cloud Save in conjunction with something that supports offline access (e.g. PlayerPrefs) but we are actively working on this and we hope to fill that documentation gap soon.