/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h
Get all components derived from class 'T' and fill in the OutComponents array with the result. It's recommended to use TArrays with a TInlineAllocator to potentially avoid memory allocation costs.TInlineComponentArrayis defined to make this easier, for example: { TInlineComponentArrayPrimComponents(Actor); }
template<class T, class AllocatorType> void GetComponents ( [TArray](API\Runtime\Core\Containers\TArray)< [TObjectPtr](API\Runtime\Core\Delegates\TObjectPtr)< T >, AllocatorType > & OutComponents, bool bIncludeFromChildActors ) const