AHUD::AddHitBox

Add a hitbox to 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 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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback