AHUD::AddHitBox

Add a hitbox to 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 AddHitBox
(
    FVector2D Position,
    FVector2D Size,
    FName InName,
    bool bConsumesInput,
    int32 Priority
)

Remarks

Add a hitbox to the hud

Parameters

Parameter

Description

Position

Coordinates of the top left of the hit box.

Size

Size of the hit box.

Name

Name of the hit box.

bConsumesInput

Whether click processing should continue if this hit box is clicked.

Priority

The priority of the box used for layering. Larger values are considered first. Equal values are considered in the order they were added.