RealDocs

UKismetTextLibrary::IsPolyglotDataValid

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

Description

Checks whether the given FPolyglotTextData is valid — i.e. has the required identity and source data to produce usable text.

Caveats & Gotchas

  • FPolyglotTextData is a design-time construct for authoring multiple language variants of a string inline (typically in code or data assets) rather than through the string table pipeline — this validates that authoring, not a runtime translation lookup.
  • ErrorMessage is only meaningful when IsValid is false; it isn't cleared to empty text on the success path.

Signature

static void IsPolyglotDataValid(const FPolyglotTextData& PolyglotData, bool& IsValid, FText& ErrorMessage);

Parameters

Name Type Description Default
PolyglotData const FPolyglotTextData& The polyglot data asset/struct to validate.
IsValid bool& Receives true if the data is valid, false otherwise.
ErrorMessage FText& Filled in with a human-readable reason when IsValid is false.

Return Type

void

Example

Validate polyglot data before converting to text C++
bool bValid;
FText Error;
UKismetTextLibrary::IsPolyglotDataValid(MyPolyglotData, bValid, Error);
if (!bValid)
{
    UE_LOG(LogTemp, Warning, TEXT("Invalid polyglot data: %s"), *Error.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.