]> Untitled Git - william-skin.git/blob - ux/debug_overlay.gd
Added export config options for web, osx, windows, linux
[william-skin.git] / ux / debug_overlay.gd
1 extends CanvasLayer
2
3
4 @onready var draw = $DebugDraw3D
5 @onready var stats = $DebugStats
6
7
8 func _ready():
9         if not InputMap.has_action("toggle_debug"):
10                 InputMap.add_action("toggle_debug")
11                 var ev = InputEventKey.new()
12                 ev.physical_keycode = KEY_BACKSLASH
13                 InputMap.action_add_event("toggle_debug", ev)
14
15
16 func _input(event):
17         if event.is_action_pressed("toggle_debug"):
18                 self.visible = not self.visible