[Solved] Using FText::Format with TexBlock Text from StringTable

From my page on localizing UIs in Unreal, you can use FFormatNamedArgs and pass that into FText::Format:


int32 Value = 150;

FText FormatInput = FText::FromStringTable("MyTable", "HealthFormat");

FFormatNamedArguments Args;
Args.Add("HealthValue", Value);
FText FormattedText = FText::Format( FormatInput, Args );

10 Likes