RealDocs

UKismetTextLibrary::Conv_TextToString

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

Description

Converts localizable text to a plain FString. Backs the 'To String (Text)' Blueprint conversion node.

Caveats & Gotchas

  • Baking to FString discards localization — the result is a snapshot of the text in whatever culture is active at the moment of the call, and won't update if the culture later changes.
  • This is the standard way to get FText content into APIs (file I/O, network payloads, non-localized logging) that only accept FString.

Signature

static FString Conv_TextToString(const FText& InText)

Parameters

Name Type Description Default
InText const FText& The text to convert.

Return Type

FString

Example

Write localized text to a log file C++
FText StatusText = NSLOCTEXT("MyGame", "StatusReady", "Ready");
FString StatusString = UKismetTextLibrary::Conv_TextToString(StatusText);
UE_LOG(LogTemp, Log, TEXT("Status: %s"), *StatusString);

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.