Language:
Discover
By Skill Level
By Category

AHUD::DrawLine

Choose your OS:

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

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/HUD.h

Source

Runtime/Engine/Private/HUD.cpp