enable Visible Collision Shapes in GDScript

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

is there a way to enable/disable the option Visible Collision Shapes from Debug in GDScript ? (in the code?)

:bust_in_silhouette: Reply From: Telmo “Trooper”

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.