Proper way to save scriptable objects/read save file
Posted: Fri Jul 23, 2021 12:53 am
Hello,
I have a prefab with a script on it which is referencing some scriptable objects. The nested data in the scriptable object is being modified during gameplay and then I am saving the script when the game quits. Since scriptable object data persists after play mode has exited, I am having trouble figuring out if the scriptable objects are being saved by Easy Save or not. When I open up the JSON save file, I only see hashes next to the scriptable objects like so:
Does that mean that the nested data inside the scriptable object isn't getting saved or is that to be expected? If so, is there a way to see what is getting saved inside of the scriptable object? They do have nested classes/fields inside of them but I have generated a separate type for those as well so I thought I was doing that correctly.
I have a prefab with a script on it which is referencing some scriptable objects. The nested data in the scriptable object is being modified during gameplay and then I am saving the script when the game quits. Since scriptable object data persists after play mode has exited, I am having trouble figuring out if the scriptable objects are being saved by Easy Save or not. When I open up the JSON save file, I only see hashes next to the scriptable objects like so:
Code: Select all
{
"__type" : "FurnitureHelper,Assembly-CSharp",
"_ES3Ref" : "5823137606146563824",
"goID" : "8201234751940344136",
"FloorFurniture" : {
"_ES3Ref" : "9139268332010462639"
},
"BedFurniture" : {
"_ES3Ref" : "110543471606065824"
},
"WallLFurniture" : {
"_ES3Ref" : "3740186123906972086"
},
"WallRFurniture" : {
"_ES3Ref" : "5631097052467397900"
}
}