Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
Include |
#include "Engine/Canvas.h" |
Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
void K2_DrawText
(
UFont * RenderFont,
const FString & RenderText,
FVector2D ScreenPosition,
FVector2D Scale,
FLinearColor RenderColor,
float Kerning,
FLinearColor ShadowColor,
FVector2D ShadowOffset,
bool bCentreX,
bool bCentreY,
bool bOutlined,
FLinearColor OutlineColor
)
Draws text on the Canvas.
Parameter |
Description |
---|---|
RenderFont |
Font to use when rendering the text. If this is null, then a default engine font is used. |
RenderText |
Text to render on the Canvas. |
ScreenPosition |
Screen space position to render the text. |
RenderColor |
Color to render the text. |
Kerning |
Horizontal spacing adjustment to modify the spacing between each letter. |
ShadowColor |
Color to render the shadow of the text. |
ShadowOffset |
Pixel offset relative to the screen space position to render the shadow of the text. |
bCentreX |
If true, then interpret the screen space position X coordinate as the center of the rendered text. |
bCentreY |
If true, then interpret the screen space position Y coordinate as the center of the rendered text. |
bOutlined |
If true, then the text should be rendered with an outline. |
OutlineColor |
Color to render the outline for the text. |