Navigation
API > API/Plugins > API/Plugins/CommonUI
Text block that supports custom scaling for mobile platforms, with option to only show icons if space is sparse.
| Name | UCommonRichTextBlock |
| Type | class |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonRichTextBlock.h |
| Include Path | #include "CommonRichTextBlock.h" |
Syntax
UCLASS (MinimalAPI)
class UCommonRichTextBlock : public URichTextBlock
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UTextLayoutWidget → URichTextBlock → UCommonRichTextBlock
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bTintInlineIcon | bool | Toggle it on if the text color should also tint the inline icons. | CommonRichTextBlock.h |
|
| InlineIconDisplayMode | ERichTextInlineIconDisplayMode | CommonRichTextBlock.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAutoCollapseWithEmptyText | bool | True to automatically collapse this rich text block when set to display an empty string. | CommonRichTextBlock.h |
|
| bIsScrollingEnabled | bool | If scrolling is enabled/disabled initially, this can be updated in blueprint | CommonRichTextBlock.h |
|
| DefaultTextStyleOverrideClass | TSubclassOf< UCommonTextStyle > | CommonRichTextBlock.h |
|
|
| MobileTextBlockScale | float | Mobile font size multiplier. Activated by default on mobile. See CVar Mobile_PreviewFontSize | CommonRichTextBlock.h |
|
| MyTextScroller | TSharedPtr< STextScroller > | CommonRichTextBlock.h | ||
| ScrollOrientation | TEnumAsByte< EOrientation > | The orientation the text will scroll if out of bounds. | CommonRichTextBlock.h |
|
| ScrollStyle | TSubclassOf< UCommonTextScrollStyle > | References the scroll style asset to use, no reference disables scrolling | CommonRichTextBlock.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSubclassOf< UCommonTextStyle > GetDefaultTextStyleClass() |
CommonRichTextBlock.h | ||
float GetMobileTextBlockScale() |
CommonRichTextBlock.h | ||
ETextTransformPolicy GetTextTransformPolicy() |
CommonRichTextBlock.h | ||
void SetScrollingEnabled
(
bool bInIsScrollingEnabled |
CommonRichTextBlock.h |
|
|
void SetStyle
(
const TSubclassOf< UCommonTextStyle >& InStyle |
CommonRichTextBlock.h |
|
Overridden from URichTextBlock
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetText
(
const FText& InText |
CommonRichTextBlock.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
CommonRichTextBlock.h | ||
virtual void OnCreationFromPalette() |
CommonRichTextBlock.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
CommonRichTextBlock.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEditChange
(
const FProperty* InProperty |
CommonRichTextBlock.h | ||
virtual void Serialize
(
FArchive& Ar |
CommonRichTextBlock.h |
Protected
Overridden from URichTextBlock
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyUpdatedDefaultTextStyle() |
CommonRichTextBlock.h | ||
virtual void CreateDecorators
(
TArray< TSharedRef< ITextDecorator > >& OutDecorators |
CommonRichTextBlock.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
CommonRichTextBlock.h | ||
virtual void SynchronizeProperties() |
CommonRichTextBlock.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| CommonRichTextBlock.h |