How do I turn on the ability to see the wireframe of a physics collider on an entity in ECS?
I found this:
entityManager.SetComponentData(entity, new PhysicsDebugDisplayData
{
DrawBroadphase = 1,
DrawColliders = 1,
DrawColliderAabbs = 1,
DrawColliderEdges = 1
});
But it doesn't work for me and results in this error:
ArgumentException: A component with type:Unity.Physics.Authoring.PhysicsDebugDisplayData has not been added to the entity.
Any ideas?