📅  最后修改于: 2022-03-11 14:57:44.062000             🧑  作者: Mango
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