Inputs
Table of Contents
Where to handle inputs: _*process
vs. _*input
discussion
_*input
callbacks including _input
, _unhandled_input
will only be called when there is an input event. So, if it's possible, handling inputs within one of _*input
callbacks is recommended.
Though the official document doesn't seem to clearly mentioned, _*input
callbacks appears to be called before any of _*process
callbacks.
For inputs for game objects, it is generally a good idea to use _unhandled_input
callback, because it will filter inputs which are already processed by GUI.
- https://docs.godotengine.org/en/3.1/tutorials/inputs/inputevent.html#how-does-it-work
- https://docs.godotengine.org/en/3.1/getting_started/workflow/best_practices/godot_notifications.html#process-vs-physics-process-vs-input
- https://www.reddit.com/r/godot/comments/854rpu/order_of_execution_of_process_physics_process_etc/dvuop59/