Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/ICustomObjectSnapshotSerializer
Description
Similar to FindOrRecreateSubobjectInEditorWorld, only that the subobject is not recreated if not present. Called when diffing against the world.
| Name | FindSubobjectInEditorWorld |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Restorability/Interfaces/ICustomObjectSnapshotSerializer.h |
| Include Path | #include "Restorability/Interfaces/ICustomObjectSnapshotSerializer.h" |
virtual UObject * FindSubobjectInEditorWorld
(
UObject * EditorObject,
const ISnapshotSubobjectMetaData & ObjectData,
const ICustomSnapshotSerializationData & DataStorage
)
The subobject in the editor world. If you return null, the subobject will be recreated.
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 |