func _enter_tree():
add_autoload_singleton("MyAutoload", "res://addons/my_addon/my_autoload.tscn")
editor_panel = preload("res://addons/my_addon/editor_panel.tscn").instantiate()
add_control_to_bottom_panel(editor_panel, "My Panel")
But how can these two communicate? I basically want MyAutoload-functions to be accessible from anywhere. And these functions have to communicate with the editor panel to generate some output in it. Somehow I can’t get them to interact with each other.
@Mahan: I tried that, but when I call “MyAutoload.plugin_panel.something()” I get Null for the plugin_panel.
@mrcdk: I thought instead of printing my debug information in the game itself I could put it inside the editor to have everything a bit more organized. Somehow this seems to be more complicated than I thought.