Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/ILevelSnapshotsModule
Description
Registers callbacks for snapshotting / restoring certain classes. There can only be one per class. The typical use case using Level Snapshots for restoring subobjects you want recreate / find manually.
| Name | RegisterCustomObjectSerializer |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/ILevelSnapshotsModule.h |
| Include Path | #include "ILevelSnapshotsModule.h" |
void RegisterCustomObjectSerializer
(
UClass * Class,
TSharedRef < ICustomObjectSnapshotSerializer > CustomSerializer,
bool bIncludeBlueprintChildClasses
)
Parameters
| Name | Remarks |
|---|---|
| Class | The class to register. This must be a native class (because Blueprint classes may be reinstanced when recompiled - not supported atm). |
| CustomSerializer | Your callbacks |
| bIncludeBlueprintChildClasses | Whether to use 'CustomSerializer' for Blueprint child classes of 'Class' |