Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AHUD
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 |
void AddHitBox
&40;
FVector2D Position,
FVector2D Size,
FName InName,
bool bConsumesInput,
int32 Priority
&41;
Remarks
Add a hitbox to the hud
Parameters
| Name | 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. |