![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Components/TextRenderComponent.h"#include "Internationalization/TextLocalizationManager.h"#include "SceneView.h"#include "UObject/ConstructorHelpers.h"#include "PrimitiveViewRelevance.h"#include "MaterialDomain.h"#include "PrimitiveSceneProxy.h"#include "Engine/Font.h"#include "Materials/Material.h"#include "Components/BillboardComponent.h"#include "Engine/CollisionProfile.h"#include "Containers/Ticker.h"#include "SceneInterface.h"#include "UObject/UObjectIterator.h"#include "Engine/Texture2D.h"#include "PrimitiveDrawingUtils.h"#include "DynamicMeshBuilder.h"#include "Engine/TextRenderActor.h"#include "Materials/MaterialInstanceDynamic.h"#include "StaticMeshResources.h"#include "RayTracingInstance.h"#include "PSOPrecache.h"#include "DataDrivenShaderPlatformInfo.h"Classes | |
| struct | FTextIterator |
| class | FTextRenderComponentMIDCache |
| struct | FTextRenderComponentMIDCache::FMIDData |
| class | FTextRenderSceneProxy |
| class | FTextRenderComponentCultureChangedFixUp |
Macros | |
| #define | LOCTEXT_NAMESPACE "TextRenderComponent" |
Functions | |
| FVector2D | ComputeTextSize (FTextIterator It, class UFont *Font, float XScale, float YScale, float HorizSpacingAdjust, float VertSpacingAdjust) |
| float | ComputeVerticalAlignmentOffset (float SizeY, EVerticalTextAligment VerticalAlignment, float LegacyVerticalOffset) |
| float | CalculateVerticalAlignmentOffset (const TCHAR *Text, class UFont *Font, float XScale, float YScale, float HorizSpacingAdjust, float VertSpacingAdjust, EVerticalTextAligment VerticalAlignment) |
| FVertexDeclarationElementList | InitDummyVertexDeclarationElementsForText () |
| #define LOCTEXT_NAMESPACE "TextRenderComponent" |
| float CalculateVerticalAlignmentOffset | ( | const TCHAR * | Text, |
| class UFont * | Font, | ||
| float | XScale, | ||
| float | YScale, | ||
| float | HorizSpacingAdjust, | ||
| float | VertSpacingAdjust, | ||
| EVerticalTextAligment | VerticalAlignment | ||
| ) |
For the given text info, calculate the vertical offset that needs to be applied to the component in order to vertically align it to the requested alignment.
| FVector2D ComputeTextSize | ( | FTextIterator | It, |
| class UFont * | Font, | ||
| float | XScale, | ||
| float | YScale, | ||
| float | HorizSpacingAdjust, | ||
| float | VertSpacingAdjust | ||
| ) |
| float ComputeVerticalAlignmentOffset | ( | float | SizeY, |
| EVerticalTextAligment | VerticalAlignment, | ||
| float | LegacyVerticalOffset | ||
| ) |
| FVertexDeclarationElementList InitDummyVertexDeclarationElementsForText | ( | ) |