@tool #@icon(icon_path: String) #class_name MyNode extends VBoxContainer ## Documentation comments #signal #enum #const const DEBUG_OBJECT = preload("uid://ctpm1isydoxy") @export var target_node: Node @export var variables_to_track: Array[StringName] #var @onready var debug_title: Label = $DebugTitle ## OVERRIDES func _ready() -> void: if target_node: debug_title.text = "Debug info for %s" % target_node.name if variables_to_track: for variable in variables_to_track: var new_debug_object: DebugObject = DEBUG_OBJECT.instantiate() new_debug_object.target = target_node new_debug_object.variable = variable add_child(new_debug_object) ## CORE ## PRIVATE/HELPER ## RECEIVERS ## SETTERS/GETTERS