Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/Restorability > API/Plugins/LevelSnapshots/Restorability/Interfaces > API/Plugins/LevelSnapshots/Restorability/Interfaces/ICustomObjectSna-
References
| Module | LevelSnapshots |
| Header | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Restorability/Interfaces/ICustomObjectSnapshotSerializer.h |
| Include | #include "Restorability/Interfaces/ICustomObjectSnapshotSerializer.h" |
virtual UObject &42; FindOrRecreateSubobjectInEditorWorld
&40;
UObject &42; EditorObject,
const ISnapshotSubobjectMetaData & ObjectData,
const ICustomSnapshotSerializationData & DataStorage
&41;
Remarks
Called when applying into the editor world. This is called for every subobject added using ISnapshotObjectSerializer::AddSubobjectDependency.
This function must either find the subobject in EditorObject 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, OnPostSerializeEditorSubobject is called. The found or recreated subobject. If null, the subobject is skipped.
Parameters
| Name | Description |
|---|---|
| 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 |