I have two buttons that appear (with "visible" set to true) with a prompt that appears to prevent someone from accidentally erasing data in the game's menu. However, it will not let me click on the buttons in the red square with the exception of hitting the arrow keys on a keyboard. The only thing I can click are the normal menu buttons. I did do some research on this, more specifically trying to change the mouse filter, but nothing has worked so far.
#Buttons Not Working, Potentially "Overlapping"
4 messages · Page 1 of 1 (latest)
I've had this happen before and it drove me crazy. Turned out a control node was preventing the mouse click. I remember even having to write a little utility to find the sucker! It sounds like you checked that, but maybe it's a different control doing it. But sometimes it can be another control node you didn't think of.
Attached is that little utility. Just add it as an autoload and do some testing. Hope it helps at least put to rest the idea it's a control node.
Thanks for the tool, however its giving me an error(s) on line 8 of the script:
var result = get_tree().connect("node_added", self, "_on_node_added")
Says "Invalid argument for connect() function: argument 2 should be 'Callable' but is set to [tool's file path]" as well as a few others
The script is for Godot 3. Just switch that one line to
var result = get_tree().node_added.connect(_on_node_added)
and it should work.