HUD

HUD

Windows
MacOS
Linux
On this page

Actions

Add Hit Box

Add a hitbox to the hud

Target is HUD

Client Set HUD

Set the client's class of HUD and spawns a new instance of it. If there was already a HUD active, it is destroyed.

Target is Player Controller

Deproject

Transforms a 2D screen location into a 3D location and direction

Target is HUD

Draw Line

Draws a 2D line on the HUD.

Target is HUD

Draw Material

Draws a material-textured quad on the HUD.

Target is HUD

Draw Material Simple

Draws a material-textured quad on the HUD. Assumes UVs such that the entire material is shown.

Target is HUD

Draw Material Triangle

Draw Material Triangle

Target is HUD

Draw Rect

Draws a colored untextured quad on the HUD.

Target is HUD

Draw Text

Draws a string on the HUD.

Target is HUD

Draw Texture

Draws a textured quad on the HUD.

Target is HUD

Draw Texture Simple

Draws a textured quad on the HUD. Assumes 1:1 texel density.

Target is HUD

Get Actors in Selection Rectangle

Returns the array of actors inside a selection rectangle, with a class filter.

Sample usage:

TArray<AStaticMeshActor*> ActorsInSelectionRect; Canvas->GetActorsInSelectionRectangle<AStaticMeshActor>(FirstPoint,SecondPoint,ActorsInSelectionRect);

Target is HUD

Get HUD

Gets the HUD currently being used by this player controller

Target is Player Controller

Get Owning Pawn

Returns the Pawn for this HUD's player.

Target is HUD

Get Owning Player Controller

Returns the PlayerController for this HUD's player.

Target is HUD

Get Text Size

Returns the width and height of a string.

Target is HUD

Get Viewport Size

Helper to get the size of the HUD canvas for this player controller. Returns 0 if there is no HUD

Target is Player Controller

Project

Transforms a 3D world-space vector into 2D screen coordinates

Target is HUD

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