Skip to main content

Save Record

All saveable data is serialized into FSaveRecord:

File Header

Save files include metadata:

ISaveable Interface

Overview

Implement ISaveable to make any component or actor save-able. Location: /Public/Save/ISaveable.h

Required Methods

GetSaveGuid()

Return a unique, persistent GUID for this saveable:
Important: The GUID must be:
  • Unique across all saveables
  • Persistent (same every time)
  • Saved in the component/actor

GetSaveBucket()

Return the bucket name for organization:
Common Buckets:
  • Players: Player data
  • World_Containers: World container state
  • Crafting: Crafting stations
  • Custom: Your own categories

BuildSaveRecord()

Serialize your data to bytes:

ApplySaveRecord()

Deserialize and apply saved data: