FFastArraySerializer::ShouldWriteFastArrayItem

Helper function for FastArrayDeltaSerialize to consolidate the logic of whether to consider writing an item in a fast [TArray](API\Runtime\Core\Containers\TArray) during network serialization.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/NetSerialization.h"

Syntax

template<typename Type, typename SerializerType>
bool ShouldWriteFastArrayItem
(
    const Type & Item,
    const bool bIsWritingOnClient
) const

Remarks

Helper function for FastArrayDeltaSerialize to consolidate the logic of whether to consider writing an item in a fast TArray during network serialization. For client replay recording, we don't want to write any items that have been added to the array predictively.

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