UKismetStringLibrary::Conv_IntVector2ToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts an FIntVector2 to a string in the form 'X= Y='. Backs the 'To String (IntVector2)' Blueprint conversion node.
Caveats & Gotchas
- • FIntVector2 is a newer 5.x type distinct from FIntPoint — they have the same X/Y layout and both print in the same 'X= Y=' format, so log output alone won't tell you which type produced a given string.
Signature
static FString Conv_IntVector2ToString(FIntVector2 InIntVec2) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InIntVec2 | FIntVector2 | The 2D integer vector value to convert. | — |
Return Type
FString Example
Convert a 2D int vector to string C++
FIntVector2 GridCell(4, 7);
FString CellText = UKismetStringLibrary::Conv_IntVector2ToString(GridCell);
// CellText == "X=4 Y=7" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?