Text Justify — Documentation

Table of content


Description

Text justify introduces a highly flexible and powerful alternative to Unreal Engine's default TextBlock and RichTextBlock. With Text justify, you can easily build structured, formatted, and dynamic multi-line text blocks with full control over alignment, images, and styles — including proper justification and inline decorations.
The main new feature is justified alignment.
Support for rich formatting:


Plugin сontent


Installation

Installing via FAB
  1. Go to the plugin page on FAB (via the launcher or the website):
    https://www.fab.com/listings/679e6924-c90d-418d-9d28-07d7de802fcd
  2. Click the "Add to Project" (or "Install to Engine") button.
  3. Select the desired Unreal Engine project from the list.
  4. Wait for the installation to complete — FAB will automatically copy the plugin to the Plugins/Marketplace/ folder.
Activation plugin
  1. Open your project in Unreal Engine.
  2. Go to Edit → Plugins.
  3. Find the Text Justify plugin in the Widgets category.
  4. Make sure it is enabled (checkmark is active).
  5. Restart the editor if necessary.

Quick start

  1. Create a new widget.
  2. Add JustifiedTextBlock or JustifiedTextBlock.

Parameters that control the appearance and behavior of the JustifiedTextBlock text.

Parameters that control the appearance and behavior of the text JustifiedTextBlock.

The Justification property determines the horizontal alignment of text within a block.
Options:
  1. Left — text is aligned to the left edge of the block.
  2. Center — text is centered.
  3. Right — text is aligned to the right edge.
  4. Justify — lines are stretched evenly across the entire width of the block.

Blueprints

Justified Text Block

Set Text

The Set Text method sets the contents of the JustifiedTextBlock widget at runtime.
Input parameters:
  • Target – reference to the JustifiedTextBlock component
  • In Text – text in Text format

Set Font

The Set Font function allows you to change the JustifiedTextBlock font in real time.
Input parameters:
  • Target – reference to the JustifiedTextBlock component
  • In Font – structure of the SlateFontInfo type

Set Color

The Set Color method sets the color of the text in the JustifiedTextBlock.
Input parameters:
  • Target – a reference to the JustifiedTextBlock component
  • In Color – a LinearColor structure representing the main color of the text

Set Auto Wrap

The Set Auto Wrap Text method enables or disables automatic text wrapping across the width of the block. When enabled (true), the text automatically wraps to the next line if it does not fit into the allotted space.
Input parameters:
  • Target – reference to the JustifiedTextBlock component
  • Inb Auto Wrap Text – boolean flag (true or false)

Set Justification

The Set Justification method allows you to change the horizontal alignment of text inside a JustifiedTextBlock.
Input parameters:
  • Target – reference to the JustifiedTextBlock component
  • In Justification – ETextJustify::Type enumeration

Set Line Height Scale

The Set Line Height Scale method changes the line spacing (line height) for JustifiedTextBlock. Allows you to visually "expand" or "compress" the lines of text in the block.
Input parameters:
  • Target – reference to the JustifiedTextBlock component
  • In Line Height Scale – float value for scaling the line spacing

Justified Rich Text Block

Set Text

The Set Text method sets the contents of the JustifiedRichTextBlock widget at runtime. Supports formatting tags (), inline images (), and color style.
Input parameters:
  • Target – reference to the JustifiedRichTextBlock component
  • In Text – text in Text format

Set Style Set

The Set Style Set method allows you to set a style table (DataTable) for formatting text inside a JustifiedRichTextBlock. This table contains visual parameters for tags (color, font, size, indents, etc.) used in the text.
Input parameters:
  • Target – a reference to the JustifiedRichTextBlock component
  • In Style Set – a DataTable object corresponding to the FTextStyleTag structure

Set Decorator Classes

The Set Decorator Classes method allows you to assign a list of custom decorator classes (URichTextBlockDecorator) that interpret and render custom tags inside JustifiedRichTextBlock.
Input parameters:
  • Target – reference to the JustifiedRichTextBlock component
  • In Decorator Classes – array of URichTextBlockDecorator inheritor classes.

Set Override Default Style

The Set Override Default Style method enables or disables the use of the overridden style in JustifiedRichTextBlock. When enabled, the block will use the built-in style specified manually, instead of the default style from the table (Style Set).
Input parameters:
  • Target – reference to the JustifiedRichTextBlock component
  • In Override Default Style – bool

Set Font

The Set Font function allows you to change the main font of the JustifiedRichTextBlock in real time. This affects all text without using tags, unless the tag table overrides the font locally.
Input parameters:
  • Target – a reference to the JustifiedRichTextBlock component
  • In Font – a structure of the SlateFontInfo type

Set Color

The Set Color method sets the base color of the text in the JustifiedRichTextBlock. This color is applied to all text unless it uses tags or a style sheet.
Input parameters:
  • Target – a reference to the JustifiedRichTextBlock component
  • In Color – a LinearColor structure representing the base color of the text.

Set Auto Wrap

The Set Auto Wrap Text method enables or disables automatic text wrapping across the width of the block. When enabled (true), the text automatically wraps to the next line if it does not fit into the allotted space.
Input parameters:
  • Target – reference to the JustifiedRichTextBlock component
  • Inb Auto Wrap Text – boolean flag (true or false)

Set Justification

The Set Justification method allows you to change the horizontal alignment of text inside a JustifiedRichTextBlock.
Input parameters:
  • Target – reference to the JustifiedRichTextBlock component
  • In Justification – ETextJustify::Type enumeration

Set Line Height Scale

The Set Line Height Scale method changes the line spacing (line height) for JustifiedRichTextBlock. Allows you to visually "expand" or "compress" the lines of text in the block.
Input parameters:
  • Target – reference to the JustifiedRichTextBlock component
  • In Line Height Scale – float value for scaling the line spacing

Set SetLine Aligment

The Set Line Alignment method controls the vertical alignment of text within each line of the JustifiedRichTextBlock. This affects the position of the baseline of the text when there are fonts, images, and decorative elements of different heights.
Input parameters:
  • Target – a reference to the JustifiedRichTextBlock component
  • In Line Alignment – an ETextVerticalAlignment enumeration

Set Line Spacing

The Set Line Spacing method sets the vertical spacing mode between lines for JustifiedRichTextBlock. Instead of a numeric value, it takes a mode type that determines how the line spacing is calculated.
Input parameters:
  • Target – reference to the JustifiedRichTextBlock component
  • In Line Spacing – ETextLineSpacingMode enumeration

Support

If you need help, have a feature request or experience troubles, please contact us at hakorichi@refugelab.com.

This plugin is distributed in accordance with the licensing terms of the Epic Games FAB platform.