Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/ICustomObjectSnapshotSerializer
Description
Called when creating objects for the temporary snapshot world. This is called for every subobject added using ISnapshotObjectSerializer::AddSubobjectDependency.
This function must either find the subobject in SnapshotObject or recreate it. If the object is recreated, you must fix up any property references yourself. After this function is called, properties will be serialized into this function's return value. After this, OnPostSerializeSnapshotSubobject is called.
| Name | FindOrRecreateSubobjectInSnapshotWorld |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Restorability/Interfaces/ICustomObjectSnapshotSerializer.h |
| Include Path | #include "Restorability/Interfaces/ICustomObjectSnapshotSerializer.h" |
virtual UObject * FindOrRecreateSubobjectInSnapshotWorld
(
UObject * SnapshotObject,
const ISnapshotSubobjectMetaData & ObjectData,
const ICustomSnapshotSerializationData & DataStorage
)
The found or recreated subobject. If null, the subobject is skipped.
Parameters
| Name | Remarks |
|---|---|
| SnapshotObject | The outer of the subobject |
| ObjectData | The data saved for the subobject. It's the data associated with the index returned by AddSubobjectSnapshot. |
| DataStorage | The data saved for the outer |