Skip to main content

Save and Load

You can get the state of a StatsComponent with GetSaveData().

You can load the state of a StatsComponent with LoadSaveData().

info

When loading data through LoadSaveData(), the event OnLoadedFromSave() will be triggered on your StatsComponent.

Basic Save/Load Example

  • Create a Blueprint Class from the SaveGame class.
  • Add a StatsComponent Save Data variable in it.
  • Save and Load your StatsComponent