UKismetTextLibrary::Conv_TransformToText
#include "Kismet/KismetTextLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts a transform to localized, formatted text combining translation, rotation, and scale. Backs the 'To Text (Transform)' Blueprint conversion node.
Caveats & Gotchas
- • The output concatenates all three components (Translation/Rotation/Scale) into one long string, which can be unwieldy for on-screen HUD display — convert the individual components instead if you only need one.
- • Passed by const reference in C++, but Blueprint always copies the transform value into the pin regardless.
Signature
static FText Conv_TransformToText(const FTransform& InTrans) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InTrans | const FTransform& | The transform value to convert. | — |
Return Type
FText Example
Log a component's full transform C++
FTransform T = SceneComponent->GetComponentTransform();
FText TransformText = UKismetTextLibrary::Conv_TransformToText(T);
UE_LOG(LogTemp, Log, TEXT("%s"), *TransformText.ToString()); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?