Hi @Chatouille, apologies for the delay. I ended up following this guide which uses FWCSaveGameArchive:
I was able to save sub-objects using the GetObjectsWithOuter(). Everything works as long as I keep the root object in GameStateBase.
However, I wanted to use GameInstance as I wanted to preserve all my data between levels.
As far as I know you cannot serialise TransientPackage and GameInstance is under Engine\Transient so when I restore it all pointers are null.
So, my question is:
How do I get around this? Do, I need to store everything in the GameMode and move it to the GameInstance before switching levels or is there some way around it?
Like changing the outer before saving, setting some other flag, or, some other magic?
I’ve tried serialising intermediate objects and restoring the children but they all fail when unserialise. I guess they store the whole path?
Thanks a lot!
M