Attention: This is not actively developed anymore. See thispost for further details!
I saw that some people want a multi-colored text in UMG, and I wanted that aswell, so I decided to pack it into a plugin. The RichTextBox is already available in the engine, but it is locked with UCLASS(Experimental). I copy/pasted those files inside new source files, removed the experimental tag, and packed it for a plugin, which works great.
How it looks in UMG:
It supports all colors (uses hex color codes + opacity) and all font styles the selected font has. How the formatting works:
It uses <span> for it’s formatting. The hex codes are built the following way: #RRGGBBAA (red - green - blue - alpha / opacity, ranging from 0 to F). Examples for formatting:
<span color="#ffffffff">This is a white text.</> <span color="#ff0000ff">This is a red text.</> <span color="#ffff0066">This is a yellow text with 50% opacity.</> <span style="bold">This is a bold text.</> <span style="italic">This is an italic text.</> <span style="bold italic">This is a bold italic text.</> <span color="#0000ffff" style="bold">This is a blue bold text.</>
The font styles such as “bold” or “italic” must have the same name in your font you put inside the TextBox.
**Download: **Click here
Installation: Put the folder UmgRichTextBox inside the downloaded zip into your project’s Plugins folder (if thats not existing, create it!).
Hope you like this plugin (even though my own work is 0% :D)!