UIText
UIText can render UE4's text/string with LGUIFont. Properties
Property: | Function: |
---|---|
Font | The Font used to display the text. |
Text | The text displayed by the control. |
Size | The size of the displayed text. |
Space | The horizontal and vertical separation between characters. |
H Align | The horizontal alignment of the text. |
V Align | The vertical alignment of the text. |
Overflow Type | The method used to handle the situation where the text is too wide or too tall to fit in rectangle. The options are Horizontal Overflow and Vertical Overflow and Clamp Content. |
Adjust Width | Valid when Overflow Type is Horizontal Overflow. Set the rectangle's width to real with of text content. |
Adjust Height | Valid when "Overflow Type* is Vertical Overflow. Set the rectangle's height to real height of text content. |
Font Style | The style applied to the text. The options are None, Bold, Italic, Bold and Italic. |
Rich Text | Should markup elements in the text be interpreted as Rich Text styling? |
RichText reference
Check "Rich Text" property in UIText to make it work:
Suported tags
Tag | Description | Example |
---|---|---|
b | Renders the text in boldface. | This is a <b>LGUI</b> example. |
i | Renders the text in italics. | This is a <i>LGUI</i> example. |
u | Renders the text with underline. | This is a <u>LGUI</u> example. |
s | Renders the text with strikethrough. | This is a <s>LGUI</s> example. |
size | Sets the size of the text according to the parameter value. | This is a <size=18>LGUI</size> example. This is a <size=+4>LGUI</size> example. This is a <size=-4>LGUI</size> example. |
color | Sets the color of the text according to the parameter value. The color can be specified in the traditional HTML format. #rrggbbaa ...where the letters correspond to pairs of hexadecimal digits denoting the red, green, blue and alpha (transparency) values for the color. For example, cyan at full opacity would be specified by color=#00ffffff... Another option is to use the name of the color, This is easier to understand but naturally, the range of colors is limited and full opacity is always assumed. The sheet blow shows supported color name. | This is a <color=#ff000000>LGUI</color> example. This is a <color=red>LGUI</color> example. |
sup | Renders the text with superscript. | This is a <sup>LGUI</sup> example. |
sub | Renders the text with subscript. | This is a <sub>LGUI</sub> example. |
CustomTag | This is useful when you need to select a range of text. | This is a <MyTag>LGUI</MyTag> example. |
Suported color names
Collor name | Hex value | Swatch |
---|---|---|
black | #000000ff | |
white | #ffffffff | |
gray | #808080ff | |
silver | #c0c0c0ff | |
red | #ff0000ff | |
green | #008000ff | |
blue | #0000ffff | |
orange | #ffa500ff | |
purple | #800080ff | |
yellow | #ffff00ff |