UKismetStringLibrary::Conv_TransformToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts an FTransform to a string in the form 'Translation: X= Y= Z= Rotation: P= Y= R= Scale: X= Y= Z='. Backs the 'To String (Transform)' Blueprint conversion node.
Caveats & Gotchas
- • Produces a long, verbose string covering translation, rotation, and scale together — for debug logging of just position or rotation, use Conv_VectorToString/Conv_RotatorToString on the relevant component instead of parsing this string.
- • Rotation is printed in Pitch/Yaw/Roll Euler form derived from the transform's quaternion; repeated conversions are not guaranteed to round-trip to the exact same Euler values due to gimbal-adjacent ambiguity.
Signature
static FString Conv_TransformToString(const FTransform& InTrans) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InTrans | const FTransform& | The transform value to convert. | — |
Return Type
FString Example
Log a component's full transform C++
FTransform ComponentTransform = GetActorTransform();
UE_LOG(LogTemp, Log, TEXT("%s"), *UKismetStringLibrary::Conv_TransformToString(ComponentTransform)); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?