Navigation
API > API/Runtime > API/Runtime/Engine
Description
Helper to optionally serialize a value (using operator<< on Archive). A single signal bit is indicates whether to serialize, or whether to just use the default value. Returns true if the value was not the default and needed to be serialized.
| Name | SerializeOptionalValue |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/NetSerialization.h |
| Include Path | #include "Engine/NetSerialization.h" |
template<typename ValueType>
bool SerializeOptionalValue
(
const bool bIsSaving,
FArchive & Ar,
ValueType & Value,
const ValueType & DefaultValue
)