I've got a Button in a plugin dock scene. The button shows up fine in the dock, but when I click it, the _pressed() func isn't called. If I run the dock scene as a game, clicking the button does call the _pressed() func.
Here's the code:
Dock script:
@tool
class_name EbtDock extends EditorPlugin
var dock: Control
func _enter_tree() -> void:
dock = preload("res://addons/ebt_dock/ebt_dock.tscn").instantiate()
add_control_to_dock(EditorPlugin.DOCK_SLOT_RIGHT_UR, dock)
func _exit_tree() -> void:
remove_control_from_docks(dock)
dock.free()
Button script:
extends Button
func _pressed() -> void:
print("hi")