Saving/loading Object Arrays after game quit/restart?

You can’t save an object, that’s the problem you’re having, you can only save and load structs.

Just as you’re about to write to the save game, you have to convert to struct ( and back again for reading ).

The struct will be exactly the same as your object. So, if my object was

image

then your struct would be

Then in the save game

You don’t have to use structs. You can just put the variables in the save game. Then you just have an array of bool, array of int, and larger array of vectors etc.

1 Like