I have been reading some rules of distribution houses for submission of games.
One issue that crops up is where a game stores its saved-game files.
I intend to build to the following platforms:
iOS
Mac
PC
Android
Can anyone tell me where each build platform stores the saved-game files?
Is this just a unity standard location or does AC have its own method?
Thanks
Comments
AC stores it's save game files in the persistentDataPath that Unity provides it with. This is a Unity value, and changes based on the platform. A search of the Unity docs should tell you it's value for each platform.
On top of that, AC makes a note of the file location when loading/saving in the Console window.
I know, it's an old post, but do you think it's possible to change the persistentDataPath?
It's ok with Windows, but with OSX the folder is Users/username/library/cache/companyname/gamename. And, hmmm, cache folder is not the best location to save your game.
Unity said it was solved since 4.6, but I have this issue with unity5, so... if it's possible with AC to change the save folder, it could be really great.
Unity post: https://unity3d.com/unity/whats-new/unity-4.5.5
"Fixes:
OSX: Application.persistentDataPath changed from ~/Library/Caches/ to ~/Library/Application Support/"
(And I checked it on a MacBook, saves location is cache folder for my game )
However, you can change the directory however you like with a simple script change. The string variable "saveDirectory" is defined on line 39 of SaveSystem.cs.
I will try some things (guys in my previous post said "It appears that if you have existing save data in /Caches, it will continue to use that folder").