Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.43 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.43 KB

UnrealEngine-SaveGame

a simple way to save properties on Actors/Components marked with SaveGame flag. This approach was originated from here

How to install

  • Put Public and Private content into your game/plugin module.
  • Go to header files and replace YOUR_API with [name-of-your-module]_API

What can be saved

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.

image

How to Save

  • 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) image

How to Load

  • 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) image

Additional Notes

You can inherit from ObjectSaveGame and add additional properties to save like a regular SaveGame object.