Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Rendering > API/Runtime/SlateCore/Rendering/FSlateDrawElement > API/Runtime/SlateCore/Rendering/FSlateDrawElement/MakeText
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElementTypes.h |
| Include | #include "Rendering/DrawElementTypes.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElementTypes.cpp |
static void MakeText
&40;
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
const FString & InText,
const int32 StartIndex,
const int32 EndIndex,
const FSlateFontInfo & InFontInfo,
ESlateDrawEffect InDrawEffects,
const FLinearColor & InTint
&41;
Remarks
Creates a text element which displays a string of a rendered in a certain font on the screen
Parameters
| Name | Description |
|---|---|
| ElementList | The list in which to add elements |
| InLayer | The layer to draw the element on |
| PaintGeometry | DrawSpace position and dimensions; see FPaintGeometry |
| InText | The string to draw |
| StartIndex | Inclusive index to start rendering from on the specified text |
| EndIndex | Exclusive index to stop rendering on the specified text |
| InFontInfo | The font to draw the string with |
| InDrawEffects | Optional draw effects to apply |
| InTint | Color to tint the element |