When I package my game, all my rich text is replaced with this:
Any idea on what the problem is? I am using UE5.4
When I package my game, all my rich text is replaced with this:
Any idea on what the problem is? I am using UE5.4
Found the issue!
When looking for where the Rich Text is set to “Warning: Rich Text formatting disabled”, I found that it it is set to that when the ICU library is disabled (code is from Unreal source):
#if UE_ENABLE_ICU
TArray<FTextRange> LineRanges;
FTextRange::CalculateLineRangesFromString(Input, LineRanges);
ParseLineRanges(Input, LineRanges, Results);
HandleEscapeSequences(Input, Results, Output);
#else
**Output = TEXT("WARNING: Rich text formatting is disabled.");**
FTextLineParseResults FakeLineParseResults(FTextRange(0, Output.Len()));
FTextRunParseResults FakeRunParseResults(TEXT(""), FTextRange(0, Output.Len()));
FakeLineParseResults.Runs.Add(FakeRunParseResults);
Results.Add(FakeLineParseResults);
#endif
After seeing this I noticed that I was setting the ICU library to be disabled in my Game.Target.cs
:
Target.bCompileICU = false;
After removing the disabling of the ICU library, Rich Text worked as expected!