extends Control @export var show_debug_ui: bool = true func _input(event: InputEvent) -> void: if event.is_action_pressed("show_debug_ui"): show_debug_ui = !show_debug_ui func _process(delta: float) -> void: if show_debug_ui: DebugDraw2D.set_text("Frames drawn", Engine.get_frames_drawn()) DebugDraw2D.set_text("FPS", Engine.get_frames_per_second()) DebugDraw2D.set_text("delta", delta)