UKismetTextLibrary::Conv_Vector2dToText
#include "Kismet/KismetTextLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts a 2D vector to localized, formatted text in the form 'X= Y='. Backs the 'To Text (Vector2d)' Blueprint conversion node.
Caveats & Gotchas
- • Only the X and Y components are printed — there's no Z, so this isn't a shortcut for documenting an FVector with a zero Z component.
- • As with the other Conv_*ToText nodes, this is inserted automatically via BlueprintAutocast, so it rarely appears explicitly in a Blueprint graph.
Signature
static FText Conv_Vector2dToText(FVector2D InVec) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InVec | FVector2D | The 2D vector value to convert. | — |
Return Type
FText Example
Show a UI cursor position C++
FVector2D CursorPos = GetMousePosition();
FText CursorText = UKismetTextLibrary::Conv_Vector2dToText(CursorPos);
DebugTextBlock->SetText(CursorText); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?