I’ve seen games that save things outside of the persistentDataPath. Examples:
Oxygen Not Included: saves on Documents folder
PC Building Simulator: saves on “PC Building Simulator/saves” path
How do I replicate this? I’m curious, because when I try to write something outside of persistentDataPath, it “doesn’t have the permission” even if I run Unity Editor as admin.
Every OS target will be different. If you can open a text editor and write a file to the destination you are contemplating, then generally Unity should be able to do that, ASSUMING it is running as the same user and the same permission level as the text editor.
You should not. Always use the persistentDataPath. Writing in the installed application’s directory is security risk and sometimes blocks proper uninstall. You don’t want to cause garbage or security risk on the users’ machines, right?