UKismetStringLibrary::Conv_Vector2dToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts an FVector2D to a string in the form 'X= Y='. Backs the 'To String (Vector2d)' Blueprint conversion node.
Caveats & Gotchas
- • FVector2D is double-precision, unlike FIntPoint/FIntVector2 which are integer — a value like (1.333, 2.667) prints with decimals, so don't assume 'X= Y=' formatted strings are safe to parse back as integers.
Signature
static FString Conv_Vector2dToString(FVector2D InVec) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InVec | FVector2D | The 2D vector value to convert. | — |
Return Type
FString Example
Convert a 2D vector to string C++
FVector2D UV(0.25, 0.75);
FString UVText = UKismetStringLibrary::Conv_Vector2dToString(UV);
// UVText == "X=0.250 Y=0.750" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?