- Home /
Load text from a file and disply it
Hey there,
today I ran into a little Problem,...
I'm making a game where a want to save the highscore to a txtfile when the character is dying and read it from there whenever I want to.
So my problem is, that I'm able to write to the file, but not read it.
I wanted it like this ( bad english ? :D ): - Read the Score - put it in my TEXTNAME.text on for example my HighScore scene.
Hope you guys can help me out,... I didn't find anything that matches my problem. ;( ^^
Comment
Look at the PlayerPrefs class for storing things like high scores.
Your answer
![](https://koobas.hobune.stream/wayback/20220613133727im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Don't destroy script on load 2 Answers
How can i get the following script back on track to being a single level high score saver 0 Answers
Local highscore issues 1 Answer
PlayerPrefs 2 Answers