UCanvas::K2_DrawPolygon

Draws a polygon on the Canvas.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h

Include

#include "Engine/Canvas.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp

Syntax

void K2_DrawPolygon
(
    UTexture * RenderTexture,
    FVector2D ScreenPosition,
    FVector2D Radius,
    int32 NumberOfSides,
    FLinearColor RenderColor
)

Remarks

Draws a polygon on the Canvas.

Parameters

Parameter

Description

RenderTexture

Texture to use when rendering the triangles. If no texture is set, then the default white texture is used.

ScreenPosition

Screen space position to render the text.

Radius

How large in pixels this polygon should be.

NumberOfSides

How many sides this polygon should have. This should be above or equal to three.

RenderColor

Color to tint the polygon.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss