/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h
Gets all the components that inherit from the given class. Currently returns an array ofUActorComponentwhich must be cast to the correct type. This intended to only be used by blueprints. UseGetComponents()in C++.
[TArray](API\Runtime\Core\Containers\TArray)< [UActorComponent](API\Runtime\Engine\Components\UActorComponent) * > K2_GetComponentsByClass ( [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [UActorComponent](API\Runtime\Engine\Components\UActorComponent) > ComponentClass ) const