extends Node3D var DebugScene = preload("res://DebugUI.tscn").instantiate() # Called when the node enters the scene tree for the first time. func _ready(): get_tree().root.add_child(DebugScene) func _input(event): if event.is_action_pressed("ui_menu"): pass # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): $CameraCenter.position = $Player.position