#Solution
#Code For You
Here’s the code I use to get actor components of a specific class:
TArray<UStaticMeshComponent*> Comps;
GetComponents(Comps);
if(Comps.Num() > 0)
{
UStaticMeshComponent* FoundComp = Comps[0];
//do stuff with FoundComp
}
You can easily adapt this code to your own needs
Rama