0 votes

I use a texturerect as semi transparent overlay for my game. It is nested inside of a MarginContainer. I also use a singelton with _unhandled_input to detect swipe. The problem is that _unhandled_input don't fire when the overlay is active. Is there a option for not handling input in ui ellements?

in Engine by (300 points)

Is there a reason your singleton uses _unhandled_input instead of _input?

I would assume it's so that the game doesn't respond to inputs that other nodes should have handled.

1 Answer

0 votes
Best answer

Set mouse_filter to ignore on the control nodes that you don't want eating the inputs.

by (7,336 points)
selected by
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 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 webmaster@godotengine.org with your username.