UCanvas::K2_DrawLine

Draws a line 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_DrawLine
(
    FVector2D ScreenPositionA,
    FVector2D ScreenPositionB,
    float Thickness,
    FLinearColor RenderColor
)

Remarks

Draws a line on the Canvas.

Parameters

Parameter

Description

ScreenPositionA

Starting position of the line in screen space.

ScreenPositionB

Ending position of the line in screen space.

Thickness

How many pixels thick this line should be.

RenderColor

Color to render the line.

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