What are the most common ways to store persistent data between scenes? For example, in the case of a RPG player object that has all sorts of attributes that the user can change, like strength, mana, etc.
I know I can use external files for this myself manually, like SQLite, or XML files, but I guess I’m wondering if there is a Unity way to handle this that I should know about?
I described playerprefs in this thread. For RPGs it might be a great thing to use. I’m not sure of the limitations however, so read up on that before diving in.
Saving to external files is the best way to handle long-term saves, but if you just want to pass info from one scene to the next, you can use DontDestroyOnLoad() on an object that you feed your relevant info into and then read out of when the new scene loads.