godot wireframe view in game code example
Example: godot wireframe view in game
func _init():
VisualServer.set_debug_generate_wireframes(true)
func _input(event):
if event is InputEventKey and Input.is_key_pressed(KEY_P):
var vp = get_viewport()
vp.debug_draw = (vp.debug_draw + 1 ) % 4