RealDocs

UKismetTextLibrary::Conv_RotatorToText

function Engine Blueprint Since unknown
#include "Kismet/KismetTextLibrary.h"
Access: public Specifiers: staticBlueprintPureBlueprintAutocast

Description

Converts a rotator to localized, formatted text in the form 'P= Y= R='. Backs the 'To Text (Rotator)' Blueprint conversion node.

Caveats & Gotchas

  • Field order in the output is Pitch, Yaw, Roll (P= Y= R=) — not the X/Y/Z convention used by the vector conversions, so double-check when reading logged rotator text.
  • The value is culture-formatted text, not a raw number string; use Conv_RotatorToString instead if you need output suitable for round-tripping or non-localized logging.

Signature

static FText Conv_RotatorToText(FRotator InRot)

Parameters

Name Type Description Default
InRot FRotator The rotator value to convert.

Return Type

FText

Example

Display an actor's rotation for debugging C++
FRotator Rot = GetActorRotation();
FText RotText = UKismetTextLibrary::Conv_RotatorToText(Rot);
UE_LOG(LogTemp, Log, TEXT("Rotation: %s"), *RotText.ToString());

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.