You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I understand from the documentation on gui inputs:
Stop captures the mouse input events and doesn't allow them to pass on. Pass captures the mouse input events but if its not accepted then it passes it on. Ignore ignores the mouse input events and pass them on.
However in the reproduction project I have below, this doesn't seem to be happening with the Pass event.
Steps to reproduce
Download the reproduction project below, press F5 and run the project. Hover your mouse over the button and notice how its not being highlighted and that you can't click on it.
The main scene in this project is setup where all the control nodes are set to Ignore except... Button which is set to Stop Panel which is set to Pass
You will see that the Panel node has a script attached to it. In this script you can see that _gui_input is overridden but does not call accept_input at all. From my understanding, this should allow the input to pass into the Button.
The text was updated successfully, but these errors were encountered:
Nukiloco
changed the title
Setting control node to pass and overriding _gui_input does not work.
Setting control node to pass and overriding _gui_input does not work
Jul 1, 2022
In your MRP, you want to pass the event to siblings and not to parents. This is currently not possible and what you experience is expected behavior.
This proposal summarizes the current situation: godotengine/godot-proposals#3613
Godot version
v4.0.alpha.calinou [caa9ec8]
System information
Windows 10, Nvidia GTX 750 TI, Nvidia GTX 1050 TI
Issue description
From what I understand from the documentation on gui inputs:
Stop
captures the mouse input events and doesn't allow them to pass on.Pass
captures the mouse input events but if its not accepted then it passes it on.Ignore
ignores the mouse input events and pass them on.However in the reproduction project I have below, this doesn't seem to be happening with the
Pass
event.Steps to reproduce
Download the reproduction project below, press F5 and run the project. Hover your mouse over the button and notice how its not being highlighted and that you can't click on it.
The main scene in this project is setup where all the control nodes are set to
Ignore
except...Button
which is set toStop
Panel
which is set toPass
You will see that the
Panel
node has a script attached to it. In this script you can see that_gui_input
is overridden but does not callaccept_input
at all. From my understanding, this should allow the input to pass into the Button.Minimal reproduction project
GuiInputPassIssue.zip
The text was updated successfully, but these errors were encountered: