a simple way to save properties on Actors/Components marked with SaveGame flag. This approach was originated from here
- Put Public and Private content into your game/plugin module.
- Go to header files and replace YOUR_API with [name-of-your-module]_API
Properties of Actors/Components marked with SaveGame flag can be saved. This works for actors/components that exist in the map and not spawned at runtime.
- Create Save Game of type "ObjectSaveGame"
- Call SaveActor to save properties. you can save multiple actors on one SaveGame
- Call SaveGameToSlot to save on disk
(click on the image to see full size)
- Call LoadGameFromSlot to load data from disk
- Cast to "ObjectSaveGame"
- Call LoadActor to load properties of the given actor.
(click on the image to see full size)
You can inherit from ObjectSaveGame and add additional properties to save like a regular SaveGame object.