set_process_input(false) not I doing it wrong?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Footurist

It seems intuitive, that if you call set_process_input(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

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

Footurist | 2018-02-21 12:56

Yeaaaah! Problem solved!

SingingApple | 2018-02-21 15:11