Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h |
Include |
#include "Rendering/DrawElements.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp |
static void MakeText
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
const FString & InText,
const int32 StartIndex,
const int32 EndIndex,
const FSlateFontInfo & InFontInfo,
ESlateDrawEffect InDrawEffects,
const FLinearColor & InTint
)
Creates a text element which displays a string of a rendered in a certain font on the screen
Parameter |
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 |