Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCanvas
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float DrawText
(
const UFont* InFont, |
Draws a string of text to the screen. | Engine/Canvas.h | |
float DrawText
(
const UFont* InFont, |
Engine/Canvas.h | ||
float DrawText
(
const UFont* InFont, |
Engine/Canvas.h |
DrawText(const UFont *, FStringView, float, float, float, float, const FFontRenderInfo &)
Description
Draws a string of text to the screen.
| Name | DrawText |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path | #include "Engine/Canvas.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
float DrawText
(
const UFont * InFont,
FStringView InText,
float X,
float Y,
float XScale,
float YScale,
const FFontRenderInfo & RenderInfo
)
The Y extent of the rendered text.
Parameters
| Name | Remarks |
|---|---|
| InFont | The font to draw with. |
| InText | The string to be drawn. |
| X | Position to draw X. |
| Y | Position to draw Y. |
| XScale | Optional. The horizontal scaling to apply to the text. |
| YScale | Optional. The vertical scaling to apply to the text. |
| RenderInfo | Optional. The FontRenderInfo to use when drawing the text. |
DrawText(const UFont *, const FText &, float, float, float, float, const FFontRenderInfo &)
| Name | DrawText |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path | #include "Engine/Canvas.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
float DrawText
(
const UFont * InFont,
const FText & InText,
float X,
float Y,
float XScale,
float YScale,
const FFontRenderInfo & RenderInfo
)
DrawText(const UFont *, FAnsiStringView, float, float, float, float, const FFontRenderInfo &)
| Name | DrawText |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path | #include "Engine/Canvas.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
float DrawText
(
const UFont * InFont,
FAnsiStringView InText,
float X,
float Y,
float XScale,
float YScale,
const FFontRenderInfo & RenderInfo
)