FCanvas::DrawShadowedString

Draw an string centered on given location.

Windows
MacOS
Linux

Syntax

int32 DrawShadowedString
(
    float StartX,
    float StartY,
    const TCHAR * Text,
    const UFont * Font,
    const FLinearColor & Color,
    const FLinearColor & ShadowColor
)

Remarks

Draw an string centered on given location. This function is being deprecated. a FCanvasTextItem should be used instead.

Returns

total size in pixels of text drawn

Parameters

Parameter

Description

StartX

X point

StartY

Y point

Text

Text to draw

Font

Font to use

Color

Color of the text

ShadowColor

Shadow color to draw underneath the text (ignored for distance field fonts)

References

Module

Engine

Header

Runtime/Engine/Public/CanvasTypes.h

Source

Runtime/Engine/Private/UserInterface/Canvas.cpp

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback