I am making a game at the moment and I’m trying to implement a very basic saving system for high scores and other statistics. My original idea was to have a file that stored the top 5 high scores, and whenever a new score was achieved the list was resorted and the top 5 would be saved to the file. However, when trying to implement this using a TextAsset I realised Unity doesn’t save changed made to them, and playerprefs can only store constant values (not like a list of highscores or other statistics where there might be more than just the top 5).
I have used python before and that works by just having a file in the same path as the project, and the files can be directly manipulated by the code. Is there anything similar to this in Unity?