AActor::GetComponentsByTag

Gets all the components that inherit from the given class with a given tag.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/Actor.cpp

Syntax

TArray< UActorComponent * > GetComponentsByTag
(
    TSubclassOf< UActorComponent > ComponentClass,
    FName Tag
) const

Remarks

Gets all the components that inherit from the given class with a given tag.

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