Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
Include |
#include "CanvasTypes.h" |
Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
int32 DrawShadowedString
(
float StartX,
float StartY,
const TCHAR * Text,
const UFont * Font,
const FLinearColor & Color,
const FLinearColor & ShadowColor
)
Draw an string centered on given location. This function is being deprecated. a FCanvasTextItem should be used instead.
total size in pixels of text drawn
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) |