Any way to show 2dShapes without debug.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nubux

I 'd like to show the range of an explosion and I hope there is a way to have the CircleShape2D rendered.
The debug option for collision shapes shows all the collision shapes and the answer I found:

You can use get_tree().set_debug_collisions_hint(true), but that only
works in an exported game if you toggle option Export With Debug.

is not really what I want.

I could use a sprite but It would be simpler if I can directly use the built-in Shape2D.


:bust_in_silhouette: Reply From: Xrayez

This kind of feature has been ignored/neglected by Godot developers for more than three years now, see this proposal:

In the past, I proposed implementation as you can see now implemented in my own Goost project (not recognized as official by Godot leadership), but it is ignored by Godot leadership.

So, the only built-in option is to use either sprites, or to replicate drawing of those shapes yourself, which is tedious, of course. You may find some luck in godot-next repository as well, specifically this script.

I’ll try the drawing option but it’s tedious indeed.
I hope this feature will be considered soon…
Thanks for the answer!

Nubux | 2023-04-14 13:44