Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/ICustomObjectSnapshotSerializer
Description
Called when taking a snapshot of an object with the class this implementation is registered to.
You can use DataStorage to add any data additional meta data needed and add subobjects you want to restore manually. Note that all uproperties will still be restored normally as with all other objects.
| Name | OnTakeSnapshot |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Restorability/Interfaces/ICustomObjectSnapshotSerializer.h |
| Include Path | #include "Restorability/Interfaces/ICustomObjectSnapshotSerializer.h" |
virtual void OnTakeSnapshot
(
UObject * EditorObject,
ICustomSnapshotSerializationData & DataStorage
)
Parameters
| Name | Remarks |
|---|---|
| EditorObject | The object being snapshotted. Same as DataStorage->GetSerializedObject(). |
| DataStorage | Data to save for EditorObject: serialize extra data about EditorObject and add subobjects. |