Module |
|
Header |
/Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Data/PropertySelection.h |
Include |
#include "Data/PropertySelection.h" |
Source |
/Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Private/Data/PropertySelection.cpp |
bool ShouldSerializeProperty
(
const FArchiveSerializedPropertyChain * ContainerChain,
const FProperty * LeafProperty
) const
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.
Parameter |
Description |
---|---|
ContainerChain |
The chain of properties to the most nested owning struct: See FArchive::GetSerializedPropertyChain. |
LeafProperty |
The leaf property in the struct |