UBlueprintGameplayTagLibrary::GetAllActorsOfClassMatchingTagQuery

Get an array of all actors of a specific class (or subclass of that class) which match the specified gameplay tag query.

Windows
MacOS
Linux

References

Module

GameplayTags

Header

/Engine/Source/Runtime/GameplayTags/Classes/BlueprintGameplayTagLibrary.h

Include

#include "BlueprintGameplayTagLibrary.h"

Source

/Engine/Source/Runtime/GameplayTags/Private/BlueprintGameplayTagLibrary.cpp

Syntax

static void GetAllActorsOfClassMatchingTagQuery
(
    UObject * WorldContextObject,
    TSubclassOf< AActor > ActorClass,
    const FGameplayTagQuery & GameplayTagQuery,
    TArray< AActor * > & OutActors
)

Remarks

Get an array of all actors of a specific class (or subclass of that class) which match the specified gameplay tag query.

Parameters

Parameter

Description

ActorClass

Class of actors to fetch

GameplayTagQuery

Query to match against

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss