RealDocs

UKismetTextLibrary::GetTextSourceString

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

Description

Gets the non-localized source string of the given text — the original, untranslated string it was authored or generated from.

Caveats & Gotchas

  • Displayed in Blueprint as 'Get Source String from Text'.
  • For generated text (e.g. the result of Format), the source-code comment notes this will deep-build the source string as if generation had run for the native language — this can be more expensive than a simple property read.
  • This is not the same as the currently-displayed string in the active culture; use Conv_TextToString for the localized display string instead.

Signature

static FString GetTextSourceString(FText Text);

Parameters

Name Type Description Default
Text FText The text instance to read the source string from.

Return Type

FString

Example

Get the original authoring string for logging C++
FString SourceStr = UKismetTextLibrary::GetTextSourceString(SomeLocalizedText);
UE_LOG(LogTemp, Log, TEXT("Source: %s"), *SourceStr);

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.