Navigation
API > API/Runtime > API/Runtime/Engine
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SerializeFixedVector
(
FVector3f& Vector, |
MaxValue is the max abs value to serialize. | Engine/NetSerialization.h | |
bool SerializeFixedVector
(
FVector3d& Vector, |
Engine/NetSerialization.h |
SerializeFixedVector(FVector3f &, FArchive &)
Description
MaxValue is the max abs value to serialize. If abs value of any vector components exceeds this, the serialized value will be clamped. NumBits is the total number of bits to use - this includes the sign bit!
So passing in NumBits = 8, and MaxValue = 2^8, you will scale down to fit into 7 bits so you can leave 1 for the sign bit.
| Name | SerializeFixedVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/NetSerialization.h |
| Include Path | #include "Engine/NetSerialization.h" |
template<int32 MaxValue, uint32 NumBits>
bool SerializeFixedVector
(
FVector3f & Vector,
FArchive & Ar
)
SerializeFixedVector(FVector3d &, FArchive &)
| Name | SerializeFixedVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/NetSerialization.h |
| Include Path | #include "Engine/NetSerialization.h" |
template<int32 MaxValue, uint32 NumBits>
bool SerializeFixedVector
(
FVector3d & Vector,
FArchive & Ar
)