Godot Version
4.2.1
Question
General question about the engine: do nodes with their ProcessMode set to PROCESS_MODE_DISABLED still recieve signals?
4.2.1
General question about the engine: do nodes with their ProcessMode set to PROCESS_MODE_DISABLED still recieve signals?
This is easy to test and the answer is yes, they do still receive signals.
I added a label with a script to a scene with a button:
extends Label
@onready var button: Button = $"../Button"
func _ready()->void:
button.connect("pressed", moot)
set_process(false)
func moot()->void:
print("moot")
I set the process to false and also set the default process mode to disabled and it still caught the button press.
As a note set_process
does not disable all processing, just the _process
function override (if present)
Yeah, I didn’t want to include all of them as the op wasn’t even talking about them.
I should have left it out in fact.
set_process()
set_physics_process()
set_process_input()
set_process_internal()
set_process_shortcut_input()
set_process_unhandled_input()
set_process_unhandled_key_input()
set_physics_process_internal()
# and maybe more
I went back and highlighted the important bit.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.