P0-B1: Part 1054: JSON Saving/Loading
by PhoenixGames on Apr.10, 2022, under Astral Realms, P-0, P0_B1, Software and Games, Spiritus Astrum
I have spent a day working on a replacement for playerprefs.
Playerprefs make is very easy to store data persistently, but they store data in the systems registry, not in the game folder, which would cause problems if a game project needed to be moved from one drive to another.
Playerprefs are also not really designed to store large amounts of data, and they are stored in plaintext, so they can be easily edited by players.
I have implemented simple JSON saving and loading now, with similiar functionality to player prefs. I have also added simple encryption to the JSON files so that they cannot be easily modified by players.