I’ve also tried saving some runtime data, such as actors, but I wasn’t successful. Using SaveGameToSlot
only allows saving UPROPERTY
variables. Therefore, my current approach is to create a descriptive structure for the objects I want to save, store that structure using SaveGameToSlot
, and then use the structure to restore the actor when loading. If you directly try to save an actor or UObject
, it could lead to a series of issues like memory alignment or context problems. Feedback is welcome!