UKismetStringLibrary::BuildString_Rotator
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Builds a new string in the form AppendTo+Prefix+InRot+Suffix, formatting the rotator between the given prefix and suffix.
Caveats & Gotchas
- • The rotator always renders in the fixed 'P= Y= R=' layout; there's no way to customize decimal precision or component order through this node.
- • InRot is passed by value, matching the other BuildString_* overloads for lightweight value types.
Signature
static FString BuildString_Rotator(const FString& AppendTo, const FString& Prefix, FRotator InRot, const FString& Suffix) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| AppendTo | const FString& | An existing string to use as the start of the result. | — |
| Prefix | const FString& | A string inserted after AppendTo and before the formatted value. | — |
| InRot | FRotator | The rotator value to format and insert, using the standard ToString conversion. | — |
| Suffix | const FString& | A string appended to the end of the result. | — |
Return Type
FString Example
Log a spawned actor's rotation C++
FString RotText = UKismetStringLibrary::BuildString_Rotator(TEXT(""), TEXT("Facing "), GetActorRotation(), TEXT("")); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?