Scene Graph `FindOverlapHits` is not working when spawning and teleporting entities/components at runtime

Summary

I cannot get FindOverlapHits to return mesh components that are spawned at runtime. If I place the same entity in the world before launching, it will register a hit. But, if I spawn that same entity through the code, it doesn’t register.

I have it visible, so I know it’s there. And I have had no luck with changing the collision profiles. Also, I am teleporting the entity that the mesh component is on (using SetGlobalTransform) every couple of ticks so that could be the issue, maybe?

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

  • Spawn Entities through Verse
  • Add a mesh_component to each entity using a Prefab through Verse
  • Teleport the root entity every ~0.2 seconds using SetGlobalTransform
  • Use another Entity to FindOverlapHits where the teleporting entities are

Expected Result

It is expected that the teleporting entities would be found with FindOverlapHits

Observed Result

There are no hits for the teleporting entities.

Platform(s)

PC

Additional Notes

The behavior is inconsistent and probably depends on the time that has passed since the mesh_components transform has changed. So you might want to lower the time in between teleports for testing.

Follow up:
When I do the same exact thing, but I am spawning the entities and components through a prefab, it works as intended. So obviously something is off with spawning through Verse.

To clarify: With my problem, the mesh_component is created through Verse using a Prefab. But the entity that the mesh_component is the child of is spawned entirely through Verse. And when I spawn them all in a single prefab, it works perfectly.