Display Colliders in Editor Pure ECS

Hi

I wanted to know if it is possible to display colliders of Entities with a pure ECS way.
I found this post, but this isn’t fitting to my app, as it’s using Hybrid method :

Thank you

I think you can

  • Create Empty GameObject on the scene, add DOTS->Physics->PhysicsDebugDisplay component and check Convert To Entity option
  • Create new entity, add PhysicsDebugDisplayData component (I didn’t check this option)
3 Likes

Thanks for the hint
This is kind of working if you are adding the following to the PhysicsDebugDisplayData

World.EntityManager.SetComponentData(entity,new PhysicsDebugDisplayData {
            DrawBroadphase = 0,
            DrawColliders = 0,
            DrawColliderAabbs = 0,
            DrawColliderEdges = 1
        });

I’m saying kind of working, because when you are trying to display 2 colliders, nothing is display, but when you are trying for one it’s working perfectly fine. Any idea why ?