NetSerializeOptionalValue

Helper to optionally serialize a value (using the NetSerialize function).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/NetSerialization.h

Include

#include "Engine/NetSerialization.h"

Syntax

template<typename ValueType>
bool NetSerializeOptionalValue
(
    const bool bIsSaving,
    FArchive & Ar,
    ValueType & Value,
    const ValueType & DefaultValue,
    class UPackageMap * PackageMap
)

Remarks

Helper to optionally serialize a value (using the NetSerialize function). A single signal bit 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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss