DrawDebugCanvas2DLine

Draws a 2D line on a canvas

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/DrawDebugHelpers.h

Include

#include "DrawDebugHelpers.h"

Source

/Engine/Source/Runtime/Engine/Private/DrawDebugHelpers.cpp

Syntax

void DrawDebugCanvas2DLine
(
    UCanvas * Canvas,
    const FVector & Start,
    const FVector & End,
    const FLinearColor & LineColor
)

Remarks

Draws a 2D line on a canvas

Parameters

Parameter

Description

Canvas

The Canvas to draw on

Start

The start of the line in screen space

End

The end of the line in screen space

LineColor

The color to use for 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