Navigation
API > API/Plugins > API/Plugins/SlateIMBlueprint > API/Plugins/SlateIMBlueprint/USlateIMBlueprintFunctionLibrary
Description
Queue drawing wrapped text to canvas.
Uses FFontRenderInfo for text effets.
Text size / wrapping is automatically computed based on the position of the text and the
| Name | DrawWrappedText |
| Type | function |
| Header File | /Engine/Plugins/Experimental/SlateIM/Source/SlateIMBlueprint/Public/SlateIMBlueprintFunctionLibrary.h |
| Include Path | #include "SlateIMBlueprintFunctionLibrary.h" |
UFUNCTION (BlueprintCallable, Category="SlateIM|Canvas")
static void DrawWrappedText
(
const UFont * RenderFont,
const FString & RenderText,
const FVector2f & CanvasPosition,
bool bCenterTextX,
bool bCenterTextY,
const FVector2f & Scale,
const FFontRenderInfo & RenderInfo
)
Parameters
| Name | Remarks |
|---|---|
| RenderFont | The font used to render the text. |
| RenderText | The text to render. |
| CanvasPosition | The position of the text on the canvas, in pixels. |
| bCenterTextX | If true, the text is centered on the given draw position on the X axis. |
| bCenterTextY | If true, the text is centered on the given draw position on the Y axis. |
| Scale | The scale of the text on the canvas. |
| RenderInfo | Extra optional parameters for rendering the text. |
See Also
- SetCanvasClip. The default clipping position is the entire canvas. It does not reset between queued calls.