Navigation
API > API/Plugins > API/Plugins/Text3D
| Name | UText3DDefaultLayoutExtension |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/Text3D/Source/Text3D/Public/Extensions/Text3DDefaultLayoutExtension.h |
| Include Path | #include "Extensions/Text3DDefaultLayoutExtension.h" |
Syntax
UCLASS (MinimalAPI)
class UText3DDefaultLayoutExtension : public UText3DLayoutExtensionBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UText3DExtensionBase → UText3DLayoutExtensionBase → UText3DDefaultLayoutExtension
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GlyphText | TSharedPtr< UE::Text3D::Layout::FGlyphText > | Caches the last result of ShapedText, to allow faster updates of layout changes. | Extensions/Text3DDefaultLayoutExtension.h | |
| TextLayout | TSharedPtr< FText3DLayout > | Stores the text layout calculated by the TextLayoutMarshaller. | Extensions/Text3DDefaultLayoutExtension.h | |
| TextLayoutMarshaller | TSharedPtr< FRichTextLayoutMarshaller > | Determines how text is laid out, ie. parsing line breaks. | Extensions/Text3DDefaultLayoutExtension.h | |
| TextScale | FVector | Additional scale to apply to the text. | Extensions/Text3DDefaultLayoutExtension.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EText3DHorizontalTextAlignment GetHorizontalAlignment() |
Get the horizontal alignment value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
float GetLineSpacing() |
Get the line spacing value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
float GetMaxHeight() |
Get the Maximum Height - If height is larger, mesh will scale down to fit MaxHeight value | Extensions/Text3DDefaultLayoutExtension.h |
|
float GetMaxWidth() |
Get the Maximum Width - If width is larger, mesh will scale down to fit MaxWidth value | Extensions/Text3DDefaultLayoutExtension.h |
|
EText3DMaxWidthHandling GetMaxWidthBehavior() |
Get the Maximum Width Handling - Whether to wrap before scaling when the text size reaches the max width | Extensions/Text3DDefaultLayoutExtension.h |
|
bool GetScalesProportionally() |
Get if the mesh should scale proportionally when Max Width/Height is set | Extensions/Text3DDefaultLayoutExtension.h |
|
float GetTracking() |
Get the tracking value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
bool GetUseMaxHeight() |
Whether a maximum height is specified | Extensions/Text3DDefaultLayoutExtension.h |
|
bool GetUseMaxWidth() |
Whether a maximum width is specified | Extensions/Text3DDefaultLayoutExtension.h |
|
EText3DVerticalTextAlignment GetVerticalAlignment() |
Get the vertical alignment and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
float GetWordSpacing() |
Get the word spacing value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetHorizontalAlignment
(
const EText3DHorizontalTextAlignment value |
Set the horizontal alignment value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetLineSpacing
(
const float Value |
Set the line spacing value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetMaxHeight
(
const float Value |
Set the Maximum Height - If height is larger, mesh will scale down to fit MaxHeight value | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetMaxWidth
(
const float Value |
Set the Maximum Width - If width is larger, mesh will scale down to fit MaxWidth value | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetMaxWidthBehavior
(
const EText3DMaxWidthHandling Value |
Set the Maximum Width Handling - Whether to wrap before scaling when the text size reaches the max width | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetScaleProportionally
(
const bool Value |
Set if the mesh should scale proportionally when Max Width/Height is set | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetTracking
(
const float Value |
Set the tracking value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetUseMaxHeight
(
const bool Value |
Enable / Disable a Maximum Height | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetUseMaxWidth
(
const bool Value |
Enable / Disable a Maximum Width | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetVerticalAlignment
(
const EText3DVerticalTextAlignment value |
Set the vertical alignment and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
void SetWordSpacing
(
const float Value |
Set the word spacing value and signal the primitives to be rebuilt | Extensions/Text3DDefaultLayoutExtension.h |
|
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CalculateTextScale() |
Extensions/Text3DDefaultLayoutExtension.h | ||
void OnLayoutOptionsChanged() |
Extensions/Text3DDefaultLayoutExtension.h |
Overridden from UText3DLayoutExtensionBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector GetLineLocation
(
int32 LineIndex |
Extensions/Text3DDefaultLayoutExtension.h | ||
virtual float GetTextHeight() |
Extensions/Text3DDefaultLayoutExtension.h | ||
virtual FVector GetTextScale() |
Extensions/Text3DDefaultLayoutExtension.h |
Overridden from UText3DExtensionBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EText3DExtensionResult PostRendererUpdate
(
const UE::Text3D::Renderer::FUpdateParameters& InParameters |
Perform an update of the extension behavior after renderer execute based on condition above | Extensions/Text3DDefaultLayoutExtension.h | |
virtual EText3DExtensionResult PreRendererUpdate
(
const UE::Text3D::Renderer::FUpdateParameters& InParameters |
Perform an update of the extension behavior before renderer execute based on condition above | Extensions/Text3DDefaultLayoutExtension.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& InEvent |
Extensions/Text3DDefaultLayoutExtension.h | ||
virtual void PostEditUndo() |
Extensions/Text3DDefaultLayoutExtension.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TEXT3FName GetMaxHeightPropertyName() |
Extensions/Text3DDefaultLayoutExtension.h | ||
static TEXT3FName GetMaxWidthPropertyName() |
Extensions/Text3DDefaultLayoutExtension.h | ||
static TEXT3FName GetScaleProportionallyPropertyName() |
Extensions/Text3DDefaultLayoutExtension.h | ||
static TEXT3FName GetUseMaxHeightPropertyName() |
Extensions/Text3DDefaultLayoutExtension.h | ||
static TEXT3FName GetUseMaxWidthPropertyName() |
Extensions/Text3DDefaultLayoutExtension.h |