I am in the process of designing a save system for a game. I would like to save to a file and upload this file online so that it can be securely accessed via login from any computer. This works fine for a desktop build but I would also like to have a webgl build accessible online so players can play the game without needing to install the desktop version. However webgl does not support a file based system for saving/loading and uses playerprefs instead.
I am trying to work out if there is a way that these two builds can coexist so that if one build is played the progress will be saved and picked up when continuing in the other build. At the same time though playerprefs obviously has a limit to what it can store which is much less than the save file so I am wondering how this would work and what should be saved and loaded and what shouldn't?
Application.persistentDataPath
using the same code as you would on desktops, and they will be stored in the browser's IndexedDB database. However, this is a local solution - the save file can only be accessed from that browser on that computer - and isn't a substitute for cloud saves. \$\endgroup\$