Skip to content

a simple way to save properties on Actors/Components marked with SaveGame flag.

License

Notifications You must be signed in to change notification settings

MkazemAkhgary/UnrealEngine-SaveGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

a simple way to save properties on Actors/Components marked with SaveGame flag.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published