- Home /
Persistent data between different games - local save for WebGL
I want user A to save data from WebGL game G1 and load the same data in WebGL game G2. No server or other computer would be aware of that. However, Application.persistentDataPath returns a path that it's end directory is project specific.
How can I save data in one game in WebGL to be loaded in another WebGL game?
Edit - To clarify, the desired solution I need is exactly what the web series Mardrek RPG.
Answer by Cherno · Jan 19, 2017 at 05:57 PM
Use the WWW class.
WWW is for retrieving online data. If you want to access data stored on a computer from another computer, you are opening up a huge can of worms. Think about the security issues involved alone. It's probably better to upload the data ins$$anonymous$$d to share it between games.
I do not wish to access the saved data from different computer. I want user A to save data from WebGL game G1 and load the same data in WebGL game G2. No server or other computer would be aware of that.
Your answer
![](https://koobas.hobune.stream/wayback/20220612105150im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is there a way I can remove files from Application.persistantDataPath? 1 Answer
Persisting data between scenes: can't find an answer 2 Answers
internal persistentDataPath with WRITE_EXTERNAL_STORAGE permission 4 Answers
Taking and storing a screenshot locally to later load on UI canvas (all in WebGL) 1 Answer
Cannot save(serialize) a double array of a custom class 1 Answer