Save-Load for Multiple Users

Hi there I am a beginner, I am making an endless runner, I want to save and load the highscore for each user profile that has been created. I cannot find a tutorial for this specific purpose, can someone please guide me through what I have to do. Including some code would be very helpful!

For something simple like a high score value I’d just use PlayerPrefs. There are lots of threads on the topic, so you should have no trouble finding the info. The only somewhat tricky issue is differentiating between users. If what you mean by a “user profile” is in your game each player creates a kind of character, I’d use the character’s name as part of the name of the key you save for the high score. So you end up with a different key for each player. You’ll have to make player names conform to PlayerPrefs key requirements doing it this way.

Alternatively you could just save every high score in a text file. Lots of threads on that as well. Unity supports typical C# file access.

Thanks for the reply I managed to solve it. I ended up using json to create a new file for each user