I am making a saving system and I was wondering if Path.Combine can be used with Unity’s Application.persistentDataPath like:
Path.Combine(Application.persistentDataPath, "savedata.txt")
I am making a saving system and I was wondering if Path.Combine can be used with Unity’s Application.persistentDataPath like:
Path.Combine(Application.persistentDataPath, "savedata.txt")
Hello,
indeed it should work. PersistentDataPath points to different folders depending on the platform, and Path.Combine concatenate the filename and the folder.
Unless someone has a bad experience with that practice to share (I know I’ve had a few issues with IO in the past) it should work as intended.