Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/ICustomSnapshotSerializationData
Description
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.
| Name | AddSubobjectSnapshot |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Restorability/Params/ObjectSnapshotSerializationData.h |
| Include Path | #include "Restorability/Params/ObjectSnapshotSerializationData.h" |
int32 AddSubobjectSnapshot
(
UObject * Subobject
)