+3 votes

Ignore Mouse seems logical but what is Stop Mouse? It seems to be undocumented. Thanks.

in Engine by (722 points)

1 Answer

0 votes

Mouse event is "absorbed" by the control and it doesn't "continue" to its parent node. It means that parent controls under the control with Stop Mouse will not receive mouse events.

EDITED according to volzhs's comment.

by (675 points)
edited by

Thanks for the answer, but isn't this the way it works by default? (edit: changed my example. ) I just tried a test with 2 overlapping buttons (both with Stop Mouse turned off) sitting on top of a TextureFrame. If I move the mouse over them, only the topmost control will get it's input_event() function called. I've also connected their 'pressed' signal and only the topmost button gets this called as well.

AFAIK, the event goes up to parent control node, not sibling node.
if stop mouse enabled, parent control will not receive mouse event.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.