Hi guys, i'm developing a game in which i want to add a 'best score' scene. How can i do it so that every time the player reaches his best score the game automatically saves it to that scene ? Thank you very much
You can't save runtime data to a scene, your best to have a bestscores json file that you write to, that your best scores scene reads from. That would make it persistent as well so the data will on the disk and be there next time you run the game.
Yes it a simpler solution but not as flexable or extendable as serialzing to json or bson since PlayerPrefs really limits your data types. It also can't decribe arrays, dicts or any other advanced data type. Unless you want to use the hackish backdoor method of using the binaryformatter or something like json to serialize complex data into a player pref string.