UKismetStringLibrary::Conv_Vector3fToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts an FVector3f (single-precision vector) to a string in the form 'X= Y= Z='. Backs the 'To String (Float Vector)' Blueprint conversion node.
Caveats & Gotchas
- • FVector3f is single-precision (float), distinct from Blueprint's default FVector which is double-precision — this node exists specifically for code paths that use the float variant (e.g. Niagara, some physics/rendering APIs), not general Blueprint vector math.
- • Passing a regular FVector here requires an explicit narrowing conversion first; there's no implicit autocast between FVector and FVector3f.
Signature
static FString Conv_Vector3fToString(FVector3f InVec) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InVec | FVector3f | The single-precision float vector value to convert. | — |
Return Type
FString Example
Convert a float vector to string C++
FVector3f Velocity(1.5f, 0.0f, -0.25f);
FString VelocityText = UKismetStringLibrary::Conv_Vector3fToString(Velocity);
// VelocityText == "X=1.500 Y=0.000 Z=-0.250" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?