Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AHUD
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetActorsInSelectionRectangle
(
const FVector2D& FirstPoint, |
Returns the array of actors inside a selection rectangle, with a class filter. | GameFramework/HUD.h | |
void GetActorsInSelectionRectangle
(
TSubclassOf< AActor > ClassFilter, |
Returns the array of actors inside a selection rectangle, with a class filter. | GameFramework/HUD.h |
|
GetActorsInSelectionRectangle(const FVector2D &, const FVector2D &, TArray< ClassFilter * > &, bool, bool)
Description
Returns the array of actors inside a selection rectangle, with a class filter.
Sample usage: TArray
returns false if selection could not occur. Make sure template class is extending AActor.
| Name | GetActorsInSelectionRectangle |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/HUD.h |
| Include Path | #include "GameFramework/HUD.h" |
template<typename ClassFilter>
bool GetActorsInSelectionRectangle
(
const FVector2D & FirstPoint,
const FVector2D & SecondPoint,
TArray < ClassFilter * > & OutActors,
bool bIncludeNonCollidingComponents,
bool bActorMustBeFullyEnclosed
)
OutActors The actors that are within the selection box according to selection rule
Parameters
| Name | Remarks |
|---|---|
| FirstPoint | The first point, or anchor of the marquee box. Where the dragging of the marquee started in screen space. |
| SecondPoint | The second point, where the mouse cursor currently is / the other point of the box selection, in screen space. |
| bIncludeNonCollidingComponents | Whether to include even non-colliding components of the actor when determining its bounds |
| bActorMustBeFullyEnclosed | The Selection rule: whether the selection box can partially intersect Actor, or must fully enclose the Actor. |
GetActorsInSelectionRectangle(TSubclassOf< AActor >, const FVector2D &, const FVector2D &, TArray< AActor * > &, bool, bool)
Description
Returns the array of actors inside a selection rectangle, with a class filter.
Sample usage: TArray
| Name | GetActorsInSelectionRectangle |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/HUD.h |
| Include Path | #include "GameFramework/HUD.h" |
| Source | /Engine/Source/Runtime/Engine/Private/HUD.cpp |
UFUNCTION (BlueprintPure, Category=HUD)
void GetActorsInSelectionRectangle
(
TSubclassOf < AActor > ClassFilter,
const FVector2D & FirstPoint,
const FVector2D & SecondPoint,
TArray < AActor * > & OutActors,
bool bIncludeNonCollidingComponents,
bool bActorMustBeFullyEnclosed
)
OutActors The actors that are within the selection box according to selection rule
Parameters
| Name | Remarks |
|---|---|
| FirstPoint | The first point, or anchor of the marquee box. Where the dragging of the marquee started in screen space. |
| SecondPoint | The second point, where the mouse cursor currently is / the other point of the box selection, in screen space. |
| bIncludeNonCollidingComponents | Whether to include even non-colliding components of the actor when determining its bounds |
| bActorMustBeFullyEnclosed | The Selection rule: whether the selection box can partially intersect Actor, or must fully enclose the Actor. |