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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback