AHUD::DrawLine

Draws a 2D line on the HUD.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/HUD.h

Include

#include "GameFramework/HUD.h"

Source

/Engine/Source/Runtime/Engine/Private/HUD.cpp

Syntax

void DrawLine
(
    float StartScreenX,
    float StartScreenY,
    float EndScreenX,
    float EndScreenY,
    FLinearColor LineColor,
    float LineThickness
)

Remarks

Draws a 2D line on the HUD.

Parameters

Parameter

Description

StartScreenX

Screen-space X coordinate of start of the line.

StartScreenY

Screen-space Y coordinate of start of the line.

EndScreenX

Screen-space X coordinate of end of the line.

EndScreenY

Screen-space Y coordinate of end of the line.

LineColor

Color to draw line

LineThickness

Thickness of the line to draw