Contents
How to store RPG data in Unity 3D?
Im developing an offline RPG game in Unity3D. I’ve made online games before, but with online we had an edge for the database. For the online game we used a MySQL database each time the player loaded the game, they would download the database (JSON setup) and we would parse it on the client side and it would be good to go.
How to save and load RPG game data?
Things like characters’ stats, enemies’s stats, structures positions, inventory items, items stack counts and much more. How can I do that? And where will the save file will be saved, under which extension/format, and how to retrieve/Load it back?
How to save and load players progress in Unity?
EDIT: Here’s a Unity specific resource about saving a serialized object: http://gamedevelopment.tutsplus.com/tutorials/how-to-save-and-load-your-players-progress-in-unity–cms-20934 This most important Unity-specific thing mentioned there is Application.persistentDataPath
How to store game data in JSON format?
One option is to serialize the data out to JSON. If you store some sort of checksum against the data you’ll immediately know if the data has been changed. You can also encrypt the data. The JSON can be serialized into classes and collections and you can use LINQ to query them.
Do you need game data to persist between play sessions?
Have you ever needed game data to persist between play sessions? If so, Saving Persistent Player Data in Unity is the perfect project for you, because you will create a data serialization system for a simple Action RPG game. First, you will learn about serialization systems in Unity.
How to save persistent player data in Unity?
First, you will learn about serialization systems in Unity. Next, you will work with the JsonUtility and PlayerPrefs to save and load data. Finally, you will add a persistent leveling system to a player character.