Why GetOverlappingActors doesn't work

Hello. I neet to write a seeker system that must be closed inside an Actor Component. I want use the GetOverlappingActors and USphereComponent like this guy

but it doesn’t work and the array is always empty



I think I see the issue. You need to set Generate Overlap Events to true on both components that are overlapping to generate an event.

You can set it with this function:

In my game, I cache all of the things that I want to test against before the level starts and then do a distance check over the array of actors. I find that way to be simpler.