I have a volume that detects (from code) when an actor which has a specific component enters it. It looks something like things:
void ACustomVolume::ActorEnteredVolume(class AActor* Other)
{
if ( Other )
{
UCustomComponent* customComponent;
if ( Other->Components.FindItemByClass( &customComponent) )
{
UE_LOG( LogClass, Log, _T( "%s entered volume" ), *customComponent->GetReadableName() );
}
}
}
This currently works really well. But only with certain objects.
So, this has led me to a question:
Does an object with a StaticMeshComponent trigger actor events? Because all the objects I’ve tried except objects with a StaticMeshComponent in the root have triggered this method properly from the custom volume. Including player, projectiles, etc. But not StaticMeshComponent objects.
What I’m wondering is if there’s something I’m not understanding in this, or if there might even be a bug somewhere?