AHUD::DrawRect

Draws a colored untextured quad on the HUD.

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 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).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss