Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AActor
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T * FindComponentByTag
(
const FName& Tag |
Templatized version of FindComponentByTag that handles casting for you | GameFramework/Actor.h | |
UActorComponent * FindComponentByTag
(
TSubclassOf< UActorComponent > ComponentClass, |
Searches components array and returns first encountered component with a given tag. | GameFramework/Actor.h |
|
FindComponentByTag(const FName &)
Description
Templatized version of FindComponentByTag that handles casting for you
| Name | FindComponentByTag |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
template<class T>
T * FindComponentByTag
(
const FName & Tag
) const
FindComponentByTag(TSubclassOf< UActorComponent >, FName)
Description
Searches components array and returns first encountered component with a given tag.
| Name | FindComponentByTag |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Actor.cpp |
UFUNCTION (BlueprintCallable, Category="Actor",
Meta=(ComponentClass="/Script/Engine.ActorComponent"),
Meta=(DeterminesOutputType="ComponentClass"))
UActorComponent * FindComponentByTag
(
TSubclassOf < UActorComponent > ComponentClass,
FName Tag
) const