0 votes

It seems intuitive, that if you call setprocessinput(false) on a node, itself and all it's children won't process input anymore. However, this is not the case for TouchScreenButton. Am I doing something wrong?

extends TouchScreenButton

func _ready():

func _on_TouchScreenButton_pressed(): # connected via inspector

*presses button*

Output: pressed
in Engine by (840 points)
edited by

Never mind, it's setblocksignals() that I was looking for. However, seems pretty counterintuitive, that setprocessinput() just sets whether func _input(event) is called and not actually stops processing input.

Yeaaaah! Problem solved!

Please log in or register to answer this question.

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.