UKismetTextLibrary::EqualEqual_TextText
#include "Kismet/KismetTextLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if A and B are linguistically equal, comparing the displayed strings rather than object identity. Backs the '==' compact node for FText in Blueprint.
Caveats & Gotchas
- • Comparison is case-sensitive — use EqualEqual_IgnoreCase_TextText if case shouldn't matter.
- • Two FText values built from the same source string can still be unequal if they were localized differently; this compares the resolved display strings, not the underlying source identity.
- • This is a linguistic comparison, not an identity comparison — it will not detect whether two FText instances share the same localization key.
Signature
static bool EqualEqual_TextText(const FText& A, const FText& B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | const FText& | First text value to compare. | — |
| B | const FText& | Second text value to compare. | — |
Return Type
bool Example
Compare two text values C++
FText A = FText::FromString(TEXT("Ready"));
FText B = FText::FromString(TEXT("Ready"));
bool bSame = UKismetTextLibrary::EqualEqual_TextText(A, B); // true Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?