Navigation
API > API/Plugins > API/Plugins/Text3D
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- TEXT3UText3DComponent
References
| Module | Text3D |
| Header | /Engine/Plugins/Experimental/Text3D/Source/Text3D/Public/Text3DComponent.h |
| Include | #include "Text3DComponent.h" |
Syntax
UCLASS&40;ClassGroup&61;&40;Text3D&41;, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class TEXT3UText3DComponent : public USceneComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UMaterialInterface > | BackMaterial | Material for the back part | |
| bool | bCastShadow | Controls whether the text glyphs should cast a shadow or not. | |
| float | Bevel | Size of bevel | |
| TObjectPtr< UMaterialInterface > | BevelMaterial | Material for the bevel part | |
| int32 | BevelSegments | Bevel Segments (Defines the amount of tesselation for the bevel part) | |
| EText3DBevelType | BevelType | Bevel Type | |
| bool | bHasMaxHeight | Enables a maximum height to the 3D Text | |
| bool | bHasMaxWidth | Enables a maximum width to the 3D Text | |
| bool | bOutline | Generate Outline | |
| bool | bRefreshOnChange | Whether to allow automatic refresh/mesh generation | |
| bool | bScaleProportionally | Should the mesh scale proportionally when Max Width/Height is set | |
| float | Extrude | Size of the extrude | |
| TObjectPtr< UMaterialInterface > | ExtrudeMaterial | Material for the extruded part | |
| TObjectPtr< UFont > | Font | Text font | |
| TObjectPtr< UMaterialInterface > | FrontMaterial | Material for the front part | |
| EText3DHorizontalTextAlignment | HorizontalAlignment | Horizontal text alignment | |
| float | Kerning | Text kerning | |
| float | LineSpacing | Extra line spacing | |
| float | MaxHeight | Sets a maximum height to the 3D Text | |
| float | MaxWidth | Sets a maximum width to the 3D Text | |
| float | OutlineExpand | Outline expand/offset amount | |
| FText | Text | The text to generate a 3d mesh | |
| EText3DVerticalTextAlignment | VerticalAlignment | Vertical text alignment | |
| float | WordSpacing | Extra word spacing |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CastsShadow () |
Get the value of CastShadow. | |
| void | Clears all generated components and meshes from this component. | ||
| void | FormatText
(
FText& InOutText |
Will be called when text geometry is generated. | |
| UMaterialInterface * | Get the text back material | ||
| float | GetBevel () |
Get the 3d bevel value | |
| UMaterialInterface * | Get the text bevel material | ||
| int32 | Get the amount of segments that will be used to tessellate the Bevel | ||
| EText3DBevelType | GetBevelType () |
Get the 3d bevel type | |
| void | GetBounds
(
FVector& Origin, |
||
| float | GetExtrude () |
Get the text extrusion size and signal the primitives to be rebuilt | |
| UMaterialInterface * | Get the text extrude material | ||
| const UFont * | GetFont () |
Get the text font and signal the primitives to be rebuilt | |
| FText | Returns the Text property, after being formatted by the FormatText virtual function. | ||
| UMaterialInterface * | Get the text front material | ||
| int32 | Gets the number of font glyphs that are currently used | ||
| USceneComponent * | GetGlyphKerningComponent
(
int32 Index |
Gets the USceneComponent that a glyph is attached to | |
| const TArray< USceneComponent * > & | Gets all the glyph kerning components | ||
| UStaticMeshComponent * | GetGlyphMeshComponent
(
int32 Index |
Gets the StaticMeshComponent of a glyph | |
| const TArray< UStaticMeshComponent * > & | Gets all the glyph meshes | ||
| EText3DHorizontalTextAlignment | Get the horizontal alignment value and signal the primitives to be rebuilt | ||
| float | GetKerning () |
Get the kerning value and signal the primitives to be rebuilt | |
| float | Get the line spacing value and signal the primitives to be rebuilt | ||
| float | GetMaxHeight () |
Get the Maximum Height - If height is larger, mesh will scale down to fit MaxHeight value | |
| float | GetMaxWidth () |
Get the Maximum Width - If width is larger, mesh will scale down to fit MaxWidth value | |
| float | Get the outline width. | ||
| const FText & | GetText () |
Get the text value and signal the primitives to be rebuilt | |
| FVector | GetTextScale () |
Gets the scale of actual text geometry, taking into account MaxWidth and MaxHeight constraints. | |
| EText3DVerticalTextAlignment | Get the vertical alignment and signal the primitives to be rebuilt | ||
| float | Get the word spacing value and signal the primitives to be rebuilt | ||
| bool | HasMaxHeight () |
Whether a maximum height is specified | |
| bool | HasMaxWidth () |
Whether a maximum width is specified | |
| bool | HasOutline () |
Get whether an outline is applied. | |
| bool | IsFrozen () |
Freeze mesh rebuild, to avoid unnecessary mesh rebuilds when setting a few properties together | |
| FTextGeneratedNative & | |||
| void | Rebuild () |
Manually update the geometry, ignoring RefreshOnChange (but still accounting for the Freeze flag) | |
| bool | Get whether to allow automatic refresh/mesh generation | ||
| bool | Get if the mesh should scale proportionally when Max Width/Height is set | ||
| void | SetBackMaterial
(
UMaterialInterface* Value |
Set the text back material | |
| void | SetBevel
(
const float Value |
Set the 3d bevel value | |
| void | SetBevelMaterial
(
UMaterialInterface* Value |
Set the text bevel material | |
| void | SetBevelSegments
(
const int32 Value |
Set the amount of segments that will be used to tessellate the Bevel | |
| void | SetBevelType
(
const EText3DBevelType Value |
Set the 3d bevel type | |
| void | SetCastShadow
(
bool NewCastShadow |
Set the value of CastShadow. | |
| void | SetExtrude
(
const float Value |
Set the text extrusion size and signal the primitives to be rebuilt | |
| void | SetExtrudeMaterial
(
UMaterialInterface* Value |
Set the text extrude material | |
| void | Set the text font and signal the primitives to be rebuilt | ||
| void | SetFreeze
(
const bool bFreeze |
Freeze mesh rebuild, to avoid unnecessary mesh rebuilds when setting a few properties together | |
| void | SetFrontMaterial
(
UMaterialInterface* Value |
Set the text front material | |
| void | SetHasMaxHeight
(
const bool Value |
Enable / Disable a Maximum Height | |
| void | SetHasMaxWidth
(
const bool Value |
Enable / Disable a Maximum Width | |
| void | SetHasOutline
(
const bool bValue |
Set whether an outline is applied. | |
| void | SetHorizontalAlignment
(
const EText3DHorizontalTextAlignment value |
Set the horizontal alignment value and signal the primitives to be rebuilt | |
| void | SetKerning
(
const float Value |
Set the kerning value and signal the primitives to be rebuilt | |
| void | SetLineSpacing
(
const float Value |
Set the line spacing value and signal the primitives to be rebuilt | |
| void | SetMaxHeight
(
const float Value |
Set the Maximum Height - If height is larger, mesh will scale down to fit MaxHeight value | |
| void | SetMaxWidth
(
const float Value |
Set the Maximum Width - If width is larger, mesh will scale down to fit MaxWidth value | |
| void | SetOutlineExpand
(
const float Value |
Set the outline width. | |
| void | SetRefreshOnChange
(
const bool Value |
Set whether to allow automatic refresh/mesh generation | |
| void | SetScaleProportionally
(
const bool Value |
Set if the mesh should scale proportionally when Max Width/Height is set | |
| void | Set the text value and signal the primitives to be rebuilt | ||
| void | SetVerticalAlignment
(
const EText3DVerticalTextAlignment value |
Set the vertical alignment and signal the primitives to be rebuilt | |
| void | SetWordSpacing
(
const float Value |
Set the word spacing value and signal the primitives to be rebuilt | |
| void | TriggerInternalRebuild
(
const EText3DModifyFlags InModifyFlags |
Can be used to force an internal geometry and/or layout rebuild | |
Overridden from USceneComponent
| Type | Name | Description | |
|---|---|---|---|
| void | Intercept and propagate a change on this component to all children. | ||
| void | Intercept and propagate a change on this component to all children. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | |
| void | OnUnregister () |
Called when a component is unregistered. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | PostTransacted
(
const FTransactionObjectEvent& TransactionEvent |
Called after the object has been transacted in some way. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FTextGenerated | Delegate called after text is rebuilt |
Typedefs
| Name | Description |
|---|---|
| FTextGeneratedNative | Delegate called after text is rebuilt |