Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Internationalization > API/Runtime/Core/Internationalization/FText
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Internationalization/Text.h |
| Include | #include "Internationalization/Text.h" |
template<typename... TArguments>
static FText FormatNamed
&40;
FTextFormat Fmt,
TArguments &&... Args
&41;
Remarks
Format the given list of variadic key->value pairs as named arguments within the given format pattern
You may want to pre-compile your FText pattern into a FTextFormat prior to performing formats within a loop or on a critical path, as this can save CPU cycles, memory, and mutex resources vs re-compiling the pattern for each format call. See FTextFormat for more info.FText::FormatNamed(LOCTEXT("PlayerNameFmt", "{PlayerName} is really cool"), TEXT("PlayerName"), FText::FromString(PlayerName)); The formatted FText
Parameters
| Name | Description |
|---|---|
| Fmt | The format pattern to use |
| Args | A variadic list of "key then value" pairs to inject into the format pattern (must be an even number) |