I am trying to make score & ranking system for my game. GC has awesome SaveLoadManager, but it can save & load for game scene. perhaps, there are someone who looking for saving&loading data regardless Save/Load game scene.
For game-option system or local-ranking system, I explain my idea about saving/loading specific data with GC.
According to script of SaveLoadManager of GC, it uses DatabaseGeneral for saving & loading.
so we can use it too to save & load specific game data
for example, I made prototype of GameRanking system like below
first, you need to make serializable class which will store specific data for you :)
because you will parse it to json string, so you need to attach [serializable]
and, unityEngine has smart JsonUtility for handling json strings.
I made one wrapper class to handle List
I don't know the reason, but I can't handle a list directly without handler class to make json string with JsonUtility of UnityEngine.
if you can handle json string with your serializable class and JsonUtility, then you can save & load the json string with DatabaseGeneral of GC like below;
the most important thing is the unique key, the unique key is the unique key string to recognize specific json object which you want. it must be unique, if it has same value with another saved items, it will overwrite on another data
Customer support service by UserEcho