Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/TextRenderComponent.h |
Include |
#include "Components/TextRenderComponent.h" |
class UTextRenderComponent : public UPrimitiveComponent
Renders text in the world with given font. Contains usual font related attributes such as Scale, Alignment, Color etc.
Name | Description | ||
---|---|---|---|
|
uint32: 1 |
bAlwaysRenderAsText |
Allows text to draw unmodified when using debug visualization modes. |
|
TObjectPtr< cla... |
Font |
Text font |
|
TEnumAsByte< en... |
HorizontalAlignment |
Horizontal text alignment |
|
float |
HorizSpacingAdjust |
Horizontal adjustment per character, default is 0.0 |
|
float |
InvDefaultSize |
The inverse of the Font's character height. |
|
Text |
Text content, can be multi line using as line separator |
|
|
TObjectPtr< cla... |
TextMaterial |
Text material |
|
TextRenderColor |
Color of the text, can be accessed as vertex color |
|
|
TEnumAsByte< en... |
VerticalAlignment |
Vertical text alignment |
|
float |
VertSpacingAdjust |
Vertical adjustment per character, default is 0.0 |
|
float |
WorldSize |
Vertical size of the fonts largest character in world units. |
|
float |
XScale |
Horizontal scale, default is 1.0 |
|
float |
YScale |
Vertical scale, default is 1.0 |
Name | Description | |
---|---|---|
|
UTextRenderComponent ( |
Name | Description | ||
---|---|---|---|
|
GetTextLocalSize() |
Get local size of text |
|
|
GetTextWorldSize() |
Get world space size of text |
|
|
InitializeMIDCache() |
||
|
K2_SetText ( |
Change the text value and signal the primitives to be rebuilt |
|
|
SetFont ( |
Change the font and signal the primitives to be rebuilt |
|
|
SetHorizontalAlignment ( |
Change the horizontal alignment and signal the primitives to be rebuilt |
|
|
SetHorizSpacingAdjust ( |
Change the text horizontal spacing adjustment and signal the primitives to be rebuilt |
|
|
SetText ( |
Change the text value and signal the primitives to be rebuilt |
|
|
SetTextMaterial ( |
Change the text material and signal the primitives to be rebuilt |
|
|
SetTextRenderColor ( |
Change the text render color and signal the primitives to be rebuilt |
|
|
SetVerticalAlignment ( |
Change the vertical alignment and signal the primitives to be rebuilt |
|
|
SetVertSpacingAdjust ( |
Change the text vertical spacing adjustment and signal the primitives to be rebuilt |
|
|
SetWorldSize ( |
Change the world size of the text and signal the primitives to be rebuilt |
|
|
SetXScale ( |
Change the text X scale and signal the primitives to be rebuilt |
|
|
SetYScale ( |
Change the text Y scale and signal the primitives to be rebuilt |
|
|
ShutdownMIDCache() |
Name | Description | ||
---|---|---|---|
|
FPrimitiveSc... |
CreateSceneProxy() |
Creates a proxy to represent the primitive to the scene manager in the rendering thread. |
|
UMaterialInt... |
GetMaterial ( |
Returns the material used by the element at the specified index |
|
GetNumMaterials() |
Return number of material elements in this primitive |
|
|
GetRenderMatrix() |
Returns the matrix that should be used to render this component. |
|
|
GetUsedMaterials ( |
Retrieves the materials used in this component |
|
|
SetMaterial ( |
Changes the material applied to an element of the mesh. |
|
|
ShouldRecreateProxyOnUpdateTransform() |
Determines whether the proxy for this primitive type needs to be recreated whenever the primitive moves. |
Name | Description | ||
---|---|---|---|
|
FBoxSphereBo... |
CalcBounds ( |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. |
|
GetMaterialPropertyPath |
Returns full material property path and UObject owner property object Path examples: Material property path with array element and inner struct Materials[0].InnerStruct.Material Material property path with array element Materials[0] Simple material property path Materials |
|
|
UpdateBounds() |
Update the Bounds of the component. |
Name | Description | ||
---|---|---|---|
|
RequiresGameThreadEndOfFrameUpdates() |
Return true if this component requires end of frame updates to happen from the game thread. |
Name | Description | ||
---|---|---|---|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |