Language:
Discover
By Skill Level
By Category

AHUD::DrawRect

Choose your OS:

Syntax

void DrawRect
(
    FLinearColor RectColor,
    float ScreenX,
    float ScreenY,
    float ScreenW,
    float ScreenH
)

Remarks

Draws a colored untextured quad on the HUD.

Parameters

Parameter

Description

RectColor

Color of the rect. Can be translucent.

ScreenX

Screen-space X coordinate of upper left corner of the quad.

ScreenY

Screen-space Y coordinate of upper left corner of the quad.

ScreenW

Screen-space width of the quad (in pixels).

ScreenH

Screen-space height of the quad (in pixels).

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/HUD.h

Source

Runtime/Engine/Private/HUD.cpp