I’m currently trying to create a save system for my game.
I have an array of actors that I need to save, however, I can’t figure out which archive to use to store it.
Also, when I have the actor serialized in the archive, how do I actually write it to disk?
I have tried to use FBufferArchive and FFileHelper::SaveArrayToFile, however after the engine crash, I found this in a parent class of the FBufferArchive
virtual FArchive& operator<<( class UObject*& Res ) override
{
// Not supported through this archive
check(0);
return *this;
}
Apparently, FBufferArchive does not support UObject (thus AActor) serialization.
Any tips on which archive does support UObject serialization and can be written to disk?
Thanks