Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/FPropertySelection
Description
Checks whether the given property should be serialized. It should be serialized if:
- IsPropertySelected() returns true on the property
- The property is inside of a collection for which IsPropertySelected() returns true
- The property is not part of a struct for which IsPropertySelected() returns true; this happens when a struct implements a custom serializer and pushes other structs.
As performance optimisation, we assume this function is called by FArchive::ShouldSkipProperty, i.e. ShouldSerializeProperty would return true on the elements of ContainerChain.
| Name | ShouldSerializeProperty |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Filtering/PropertySelection.h |
| Include Path | #include "Filtering/PropertySelection.h" |
| Source | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Private/Filtering/PropertySelection.cpp |
bool ShouldSerializeProperty
(
const FArchiveSerializedPropertyChain * ContainerChain,
const FProperty * LeafProperty
) const
Parameters
| Name | Remarks |
|---|---|
| ContainerChain | The chain of properties to the most nested owning struct: See FArchive::GetSerializedPropertyChain. |
| LeafProperty | The leaf property in the struct |