UKismetSystemLibrary::MakeLiteralText
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPureBlueprintThreadSafe
Description
Returns the FText passed in unchanged. Backs Blueprint's literal text node, which supports localization unlike the plain string literal node.
Caveats & Gotchas
- • Unlike MakeLiteralString, the FText produced through the Blueprint text literal widget can carry a localization namespace and key for translation.
- • Pure pass-through in C++; construct FText directly with NSLOCTEXT/LOCTEXT rather than calling this from native code.
Signature
static FText MakeLiteralText(FText Value) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Value | FText | Value the literal text node should return. | — |
Return Type
FText Example
Literal pass-through C++
FText Value = UKismetSystemLibrary::MakeLiteralText(FText::FromString(TEXT("Hello World"))); Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?