UKismetTextLibrary::StringTableIdAndKeyFromText
#include "Kismet/KismetTextLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Attempts to get the string table ID and key used by the given text, returning whether the lookup succeeded.
Caveats & Gotchas
- • Displayed in Blueprint as 'Get String Table ID and Key from Text'.
- • Returns false for text that isn't string-table-backed (literal, generated, or culture-invariant text) — check TextIsFromStringTable first if you only need a boolean answer.
- • OutTableId and OutKey are left unmodified (not cleared) when the function returns false, so don't read them without checking the return value.
Signature
static bool StringTableIdAndKeyFromText(FText Text, FName& OutTableId, FString& OutKey); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Text | FText | The text instance to inspect. | — |
| OutTableId | FName& | Receives the string table ID if found. | — |
| OutKey | FString& | Receives the row key if found. | — |
Return Type
bool Example
Extract table ID and key for debugging C++
FName TableId;
FString Key;
if (UKismetTextLibrary::StringTableIdAndKeyFromText(SomeText, TableId, Key))
{
UE_LOG(LogTemp, Log, TEXT("Table: %s, Key: %s"), *TableId.ToString(), *Key);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?