@tool extends EditorPlugin const DEBUGGER_PLUGIN_SCRIPT := preload("res://addons/shrink_event_bus/editor/event_bus_debugger_plugin.gd") var _debugger_plugin: EditorDebuggerPlugin func _enter_tree() -> void: _debugger_plugin = DEBUGGER_PLUGIN_SCRIPT.new() add_debugger_plugin(_debugger_plugin) func _exit_tree() -> void: if _debugger_plugin != null: _debugger_plugin.dispose_panels() remove_debugger_plugin(_debugger_plugin) _debugger_plugin = null