Search Unity

Question Save JSON

Discussion in 'Cloud Save' started by MousePods, Dec 14, 2022.

  1. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    811
    Hi,

    I don’t see how to save a JSON file. With iCloud, I just saved it into a key slot since they were 1MB, but yours are 16KB.

    How do I save a JSON file with cloud save? My JSON is around 19KB but could go higher.

    Thanks
     
    Last edited: Dec 20, 2022
  2. Unity_AndyP

    Unity_AndyP

    Unity Technologies

    Joined:
    Jun 23, 2021
    Posts:
    63
    It is not currently possible to save a 1mb file on a single key. We are keenly aware of the size limitations that developers face when using Cloud Save and are hard at work reevaluating the limits to be less restrictive. Watch this space as we will have an announcement soon!
     
    MousePods likes this.
  3. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,080
    with a 16KB limit cloud save is almost useless. Can you please give a precise estimation for this fix?
     
  4. eduardoojeda

    eduardoojeda

    Unity Technologies

    Joined:
    Dec 23, 2020
    Posts:
    10
    We have released a new version of Cloud Save that allows up to 5MB per player in total, without any per-key limits. The max number of keys is now 2000 as well. We will be updating our documentation shortly to reflect this change.
     
    MousePods, plotlessplot and newlife like this.
  5. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,080
    Cool! So it already available?
     
  6. eduardoojeda

    eduardoojeda

    Unity Technologies

    Joined:
    Dec 23, 2020
    Posts:
    10
    Yes, it's available now
     
    MousePods and newlife like this.
  7. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,080
    How to download this version? In package manager the latest version is 2.0.1, dated June 22, 2022
     
  8. eduardoojeda

    eduardoojeda

    Unity Technologies

    Joined:
    Dec 23, 2020
    Posts:
    10
    It's purely a backend change, so the same SDK should work. Please let us know if you run into any trouble!
     
  9. socialtrens

    socialtrens

    Joined:
    Oct 23, 2017
    Posts:
    65
    Strange. I tried to upload about 200kb of data and got a 400 Bad Request error. But, If I try to upload 5kb data it works. Any help?
     
  10. rahulnaik9010

    rahulnaik9010

    Joined:
    Jan 2, 2019
    Posts:
    19
    What is the name of this package ?