SerializePackedVector

ScaleFactor is multiplied before send and divided by post receive.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/NetSerialization.h"

Syntax

template<uint32 ScaleFactor, int32 MaxBitsPerComponent>
bool SerializePackedVector
(
    FVector & Vector,
    FArchive & Ar
)

Remarks

ScaleFactor is multiplied before send and divided by post receive. A higher ScaleFactor means more precision. MaxBitsPerComponent is the maximum number of bits to use per component. This is only a maximum. A header is written (size = Log2 (MaxBitsPerComponent)) to indicate how many bits are actually used.

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