You’re getting that error because you’re not passing in the right type of argument, this is what you should be doing:
OtherActor->FindComponentByClass(UStaticMeshComponent::StaticClass())
You’re getting that error because you’re not passing in the right type of argument, this is what you should be doing:
OtherActor->FindComponentByClass(UStaticMeshComponent::StaticClass())