Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AActor
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T * FindComponentByClass () |
Templatized version of FindComponentByClass that handles casting for you | GameFramework/Actor.h | |
virtual UActorComponent * FindComponentByClass
(
const TSubclassOf< UActorComponent > ComponentClass |
Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass | GameFramework/Actor.h |
FindComponentByClass()
Description
Templatized version of FindComponentByClass that handles casting for you
| Name | FindComponentByClass |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
template<class T>
T * FindComponentByClass() const
FindComponentByClass(const TSubclassOf< UActorComponent >)
Description
Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass
| Name | FindComponentByClass |
| 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 |
virtual UActorComponent * FindComponentByClass
(
const TSubclassOf < UActorComponent > ComponentClass
) const