UKismetTextLibrary::MakeInvariantText
#include "Kismet/KismetTextLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Converts a string to culture-invariant text, functionally identical to Conv_StringToText. Use 'Make Literal Text' instead if the text needs to be localizable.
Caveats & Gotchas
- • Behaves identically to Conv_StringToText — the engine keeps both as separate Blueprint nodes for API-surface reasons rather than differing behavior.
- • Because the result is culture-invariant, it will never appear in the localization dashboard for translation even if the string looks like user-facing copy.
Signature
static FText MakeInvariantText(const FString& InString) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InString | const FString& | The string to convert. | — |
Return Type
FText Example
Create an invariant identifier text C++
FText IdText = UKismetTextLibrary::MakeInvariantText(TEXT("ITEM_001"));
bool bMatches = IdText.EqualTo(FText::FromString(TEXT("ITEM_001"))); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?