When I disable the gui node with gui.set_enabled false, it is still available for pick_node in Input.
Is this the excepted behavior?
In my case it is a box node as button. Node is not rendered but it is clickable:
function init(self)
...
gui.set_enabled(my_button, false)
...
end
function on_input(self, action_id, action)
if action_id == hash("touch") and action.pressed then
if gui.pick_node(my_button, action.x, action.y) then
print("click")
end
end
end