RealDocs

UKismetMathLibrary::Conv_DoubleToVector

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

Description

Broadcasts a single double to all three components of an FVector, producing (InDouble, InDouble, InDouble). Convenient for uniform scaling or direction-agnostic offsets.

Caveats & Gotchas

  • All three components are set to the same value — this is a broadcast. If you want a unit vector along a specific axis, use FVector::ForwardVector / RightVector / UpVector instead.
  • The Blueprint DisplayName is 'To Vector (Float)', a remnant of the pre-UE5 float era. The parameter and return type are double/FVector in UE5.

Signature

static UE_INL_API FVector Conv_DoubleToVector(double InDouble)

Parameters

Name Type Description Default
InDouble double The scalar value to broadcast to all three vector components.

Return Type

FVector

Example

Uniform scale from a gameplay variable C++
double GrowthFactor = GetGrowthFactor(); // e.g. 2.5
FVector NewScale = UKismetMathLibrary::Conv_DoubleToVector(GrowthFactor);
MyActor->SetActorScale3D(NewScale);

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.