Location of Application.persistentDataPath in a build
When I run my game from the editor and save load data, I find that data in: C:\Users\User\AppData\LocalLow\DefaultCompany\projectname\data . When I build it and get an executable, that data still loads fine, but if I save and restart, it does not get saved. However it does when I launch it from the Editor. Is this a fault in my code or is the files somewhere else when I don't run it from Unity Editor? Later when I export the game to launch it, I have persistent data I Json files that have to come with it for the game to work. For clarity, here is the class that handles save/load of Json: