UWidgetBlueprintLibrary::DrawTextFormatted

Draws text.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h

Include

#include "Blueprint/WidgetBlueprintLibrary.h"

Source

/Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp

Syntax

static void DrawTextFormatted
(
    FPaintContext & Context,
    const FText & Text,
    FVector2D Position,
    UFont * Font,
    int32 FontSize,
    FName FontTypeFace,
    FLinearColor Tint
)

Remarks

Draws text.

Parameters

Parameter

Description

Text

The string to draw.

Position

The starting position where the text is drawn in local space.

Tint

Color to render the line.