RealDocs

UKismetMathLibrary::MakeVector

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

Description

Constructs an FVector from three individual double components. This is the Blueprint 'Make Vector' node.

Caveats & Gotchas

  • Parameters are double in UE5 (changed from float in UE4). Passing float literals is safe via implicit promotion, but check for precision issues when feeding the result into legacy float-only structs.
  • In C++, prefer the FVector(X, Y, Z) constructor directly — it is equivalent and avoids a function call overhead. This function exists to expose the NativeMakeFunc Blueprint node.

Signature

static UE_INL_API FVector MakeVector(double X, double Y, double Z);

Parameters

Name Type Description Default
X double X component of the vector.
Y double Y component of the vector.
Z double Z component of the vector.

Return Type

FVector

Example

Build a spawn offset vector from components C++
FVector Offset = UKismetMathLibrary::MakeVector(100.0, 0.0, 50.0);
FVector SpawnPos = Actor->GetActorLocation() + Offset;

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.