UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FHUDHitBox Class Reference

#include <HUDHitBox.h>

Public Member Functions

ENGINE_API FHUDHitBox (FVector2D InCoords, FVector2D InSize, const FName &InName, bool bInConsumesInput, int32 InPriority)
 
ENGINE_API bool Contains (FVector2D InCoords) const
 
ENGINE_API void Draw (class FCanvas *InCanvas, const FLinearColor &InColor) const
 
const FNameGetName () const
 
const bool ConsumesInput () const
 
const int32 GetPriority () const
 

Detailed Description

Constructor & Destructor Documentation

◆ FHUDHitBox()

FHUDHitBox::FHUDHitBox ( FVector2D  InCoords,
FVector2D  InSize,
const FName InName,
bool  bInConsumesInput,
int32  InPriority 
)

Constructor for a hitbox.

Parameters
InCoordsCoordinates of top left of hitbox.
InSizeSize of the box.

Member Function Documentation

◆ ConsumesInput()

const bool FHUDHitBox::ConsumesInput ( ) const
inline

Should other boxes be processed if this box is clicked.

◆ Contains()

bool FHUDHitBox::Contains ( FVector2D  InCoords) const

Are the given coordinates within this hitbox.

Parameters
InCoordsCoordinates to check.
Returns
true if coordinates are within this hitbox.

◆ Draw()

void FHUDHitBox::Draw ( class FCanvas InCanvas,
const FLinearColor InColor 
) const

Debug render for this hitbox.

Parameters
InCanvasCanvas on which to render.
InColorColor to render the box.

◆ GetName()

const FName & FHUDHitBox::GetName ( ) const
inline

Get the name of this hitbox.

◆ GetPriority()

const int32 FHUDHitBox::GetPriority ( ) const
inline

Get the priority of this hitbox.


The documentation for this class was generated from the following files: