Hey everyone,
Sorry if this has already been asked, but I haven’t been able to find something which directly addresses my situation.
So I’m trying to determine the best directory/file location to save my applications game data in a platform independent manner. It consists of an xml file which contains all of the general information for items/units/conversations/etc. which get deserialized into the application on an as-needed basis.
I’m familiar with Application.dataPath, but I see that there are certain cases, such as with Android, where the path points directly to the apk. I’ll admit that I’m not too familiar with Android folder and file structures so I’m not sure if this would cause problems if I were to just save the file using a path like this:
string filepath = Application.dataPath + "/gameData.xml";
Any tips on this?
Link to Documentation: Unity - Scripting API: Application.dataPath.