/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h
Fetches the first component of ActorClass's CDO which match the requested component class. Will include the components added via the BP editor (whichAActor.GetComponentsfails to do for CDOs).
static const [UActorComponent](API\Runtime\Engine\Components\UActorComponent) * GetActorClassDefaultComponent ( const [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [AActor](API\Runtime\Engine\GameFramework\AActor) > & InActorClass, const [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [UActorComponent](API\Runtime\Engine\Components\UActorComponent) > & InComponentClass )