Hey! Nice summary. Would it be fair to say the Input singleton gets updated first then these fire? Is there performance gains in marking events handled earlier (or if only using the Input method)?
No, it would not be fair to say that. And any performance gains that you would find would be so minuscule that you would would really be trying to squeeze things - which at that point, I'd say you should be looking elsewhere.
Yea, it'll still be bottom to top. Remember, you have the root viewport which will receive the input first. It will then go to the bottom most node and start going up the tree.
I also want to mention, you can use something like `event.is_action_pressed("inventory")` inside of these methods.
That's what I was wondering since it seems more flexible to do it that way.
"what up nerds" 1 second in and I'm laughing my ass off
Idk why but it's the greatest intro to a tutorial i've ever witnessed
reminds me of Technoblade. #TechnobladeNeverDies
The get_tree().set_input_as_handled() method has changed to get_viewport().set_input_as_handled() in Godot 4.0. FYI.
Thanks for the breakdown. Make sure to share on fb and reddit.
thank you sooooo much !! best explaination on these input functions !!!
Ah! I'm 4 minutes in and learning a lot!
Hey! Nice summary. Would it be fair to say the Input singleton gets updated first then these fire? Is there performance gains in marking events handled earlier (or if only using the Input method)?
No, it would not be fair to say that. And any performance gains that you would find would be so minuscule that you would would really be trying to squeeze things - which at that point, I'd say you should be looking elsewhere.
@@duroxxigar Awesome - thanks for confirming! Always interesting to hear how inner workings work
How did you comment the block of code? (5:42)
Ctrl + K by default
@@duroxxigar thx
Nice video! In which order are the viewports handled? Is this also bottom to top?
Yea, it'll still be bottom to top. Remember, you have the root viewport which will receive the input first. It will then go to the bottom most node and start going up the tree.
Great video 🔥
how to do a key swap in godot
Thanks, its very helpfull
thank you, this video helped me understand better. although it hurts me internally that you pronounce "gui" as "gooey"
How do you pronounce it? I only ever hear or say gooey
You don't have to be so nervous🤗
wow, never knew that
yes