RealDocs

UKismetMathLibrary::MakeVector_NetQuantize

function Engine Blueprint Since unknown
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Builds an FVector_NetQuantize (whole-number precision, rounded) from three components. Used for the Blueprint 'Make' node on replicated vector properties that don't need sub-unit precision.

Caveats & Gotchas

  • Components are rounded to the nearest whole number when the underlying FVector_NetQuantize is constructed — fine detail below 1 unit is lost immediately, not just at replication time.
  • Only useful when the destination property is actually typed FVector_NetQuantize; converting an ordinary FVector to this type elsewhere still costs the same bandwidth as constructing it here.

Signature

static FVector_NetQuantize MakeVector_NetQuantize(double X, double Y, double Z)

Parameters

Name Type Description Default
X double X component.
Y double Y component.
Z double Z component.

Return Type

FVector_NetQuantize

Example

Build a quantized vector for a replicated property C++
FVector_NetQuantize QuantizedPos = UKismetMathLibrary::MakeVector_NetQuantize(1523.7, -840.2, 96.0);
// QuantizedPos rounds to (1524, -840, 96)

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.