Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/Restorability > API/Plugins/LevelSnapshots/Restorability/Params > API/Plugins/LevelSnapshots/Restorability/Params/ICustomSnapshotSerializationData
References
| Module | LevelSnapshots |
| Header | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Restorability/Params/ObjectSnapshotSerializationData.h |
| Include | #include "Restorability/Params/ObjectSnapshotSerializationData.h" |
int32 AddSubobjectSnapshot
&40;
UObject &42; Subobject
&41;
Remarks
Causes the properties of the subobject to be saved.
You can add additional meta data needed for restoring by calling GetSubobjectMetaData with this function's result and using ISnapshotSubobjectMetaData::ISnapshotSubobjectMetaData.
You need to make sure of the following, or this function will fail:
'Subobject' must be of a subobject of GetSerializedObject()
'Subobject' cannot be visible to standard Level Snapshots serialisation. A subobject is visible if it contained within a uproperty (object reference or collection of references) with the CPF_Edit flag. You can explicitly disallow uproperties using the Level Snapshots module.