CollisionComponent does not trigger an BeginOverlap event on spawn

Hey,

Setup:

  • An c++ actor (projectile) with CollisionComponent
  • OnComponentBeginOverlap added in BeginPlay method

When CollisionComponent is spawned in a location where some actor already exist in the overlapping area, the component does not trigger a OnComponentBeginOverlap.
At the same time, when I check Get Overlapped Actors, it shows the nearby actor properly.

After some research I’ve found the event is triggered if I add the listener earlier, in PostInitializeComponents.

I think it’s a bug in the collision detection flow – it seems it’s calculated after component spawn but before BeginPlay – I’d expect the event triggering even if the listener was added in the BeginPlay method.