- Home /
Question by
Lazy_Evaluation · Mar 04, 2020 at 02:14 PM ·
objectjsonsaveload
Saving in json an object inside a save class
Hello guys, my save class has something like this:
Save.cs:
int level = 10;
string location = "dungeon";
bool alive = true;
CharacterData playerData = new CharacterData();
when I create the string with json data it creates a json string with every variable but the playerData object. How can I add it in the json string of the Save.cs?
Comment