If you update your game and remove the currentHealth variable but the player tries to load an old save file, it might cause errors.
Solution: JSON is forgiving (it will just ignore missing fields), but for complex systems, include a version integer in your PlayerData class so you can handle legacy save files during loading.
Let’s look at real-world examples of Unity save files you might encounter. unity save edit
Use case: Cuphead stores unlock data in PlayerPrefs. Change "level_unlocked_3" from 0 to 1. If you update your game and remove the
Unity’s built-in BinaryFormatter (now considered obsolete for security) or custom binary writers. These files are not human-readable. They often contain compressed or serialized object data. Many Unity RPGs and action games use this method. Use case: Cuphead stores unlock data in PlayerPrefs
Unity save locations vary by OS and developer choice. Common locations: