Show colliders in a build game

Is there a way to show all colliders 2D in a a released game at once?
I am making a 2D game and have to show all colliders to the player.
Can I use Gizmos?

No, gizmos are an editor concept.

The only option is to draw them yourself in a player build. If you’re using 2021.2 you can read all the shapes that the 2D Collider produces which would help because you only then have to be able to draw the 4 basic primitives the physics engine supports

PhysicsShapeGroup2D

Without this it’s not hard to draw them yourself with lines. Another alternative is to ask for a mesh equivalent of the 2D collider and drawing the mesh.

1 Like

I put a child particle system on each object and turn them on/off when I need to see the collider distance. Then you can make it look all fancy and whatnot instead of just a circle.

Only drawback is, you can’t dynamically change it from my understanding. (could be wrong)

1 Like

Thanks a lot, that’s very helpful; really appreciate your efforts

1 Like