FSlateDrawElement::MakeText

Creates a text element which displays a string of a rendered in a certain font on the screen

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h

Include

#include "Rendering/DrawElements.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp

Syntax

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
)

Remarks

Creates a text element which displays a string of a rendered in a certain font on the screen

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss