Apologies if this has already been covered somewhere; it certainly seems like something that should have been. But after a few days of digging, I can’t find what I’m looking for. All results seem to either point to something else (like instructions specifically for xCode) or someone selling a plugin.
In the android build of my game Floppy Flamingo, I’m creating a save file with a serializable custom class and saving it to the persistent data path The game saves at numerous times throughout play, namely when the user has completed a level, unlocked an achievement, or made an in app purchase. When the game saves, it also commits an update to gpg cloud save. At launch, I retrieve the cloud save and compare the values from it to the local save file, and update where necessary. It’s all pretty straight forward, and there were plenty of forum posts to help along the way (such as this: How to save/load with Google Play Services - Questions & Answers - Unity Discussions).
However, there seems to be very little information on how to do the same thing with iCloud. From what I can tell, there are a number of approaches to iCloud saving, like key/value storage (which seems as though it would be better suited to backing up player prefs), and iCloud documents, which seems as though it would be the approach I’m looking for. However, I have no idea how you would go about designating what folder/directory should be saved (would this be the persistent data path?), or the methods you would use to upload/download your save file from the cloud. Also, although I’m fairly certain I have my provisioning profiles and certificates in order, whenever i do a build from XCode with the iCloud capability checked enabled and the “iCloud documents” option checked, my game no longer successfully connects to game center (whereas all other builds work fine).
In general, it just seems as though theres a lot more information out there about how to implement cloud saving with google play than with iCloud. Can anyone provide some insight/sample code as to how this is supposed to work, or point me to a post that covers it?
Thanks