Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/ILevelSnapshotsModule
Description
Disable CDO serialization for a class and all of its subclasses.
Snapshots saves the CDO of every saved object class. Actors use it as Template when spawned. For all other objects (i.e. subobjects), Serialize(FArchive&) is called with the saved CDO data and then Serialize(FArchive&) is called again with the actual object's data. This is so changes to CDOs can be detected.
This function disables the above process. You would use it e.g. when your class implements a custom Serialize(FArchive&) function which conditionally serializes data depending on whether the serialized object has the RF_ClassDefaultObject flag. Doing so would trigger an ensure in the snapshot archive code because the data would not be read in the same order as it was written.
Note: Level Snapshots will no longer detect changes made to the class default values of skipped classes.
| Name | AddSkippedClassDefault |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/ILevelSnapshotsModule.h |
| Include Path | #include "ILevelSnapshotsModule.h" |
void AddSkippedClassDefault
(
const UClass * Class
)