Тёмный

All about Signals in Godot! 

Подписаться
Просмотров 2,2 тыс.
% 143

Hey guys!
In this quick tutorial, I'll walkthrough all the key aspects you should know about Signals in Godot!
Discord link: discord.gg/kgWXhZjd69 (join the community :)
TIMESTAMPS:
0:00 Intro and Explanation
0:32 Benefits of using Signals
1:25 Connecting Signals in the Editor
3:00 Using Custom Signals
5:07 Passing Arguments through Signals
6:49 Common Questions
8:00 The Event Bus
10:19 Outro, thanks for watching! :)
Need help with Godot?
Book a 1 on 1 tutoring session with me through Fiverr!
www.fiverr.com/s/o8Wq7AG
Join this channel to get access to perks:
ru-vid.com/show-UCjjFS6h7Dc7gCaq6_PX8jUgjoin
Thanks for watching, hope you have a great week! :)
MY SETUP:
Microphone: amzn.to/3RuD3FI
Keyboard: amzn.to/4bctdiO
Mouse: amzn.to/4cpfXIF
Monitors: amzn.to/4cpc4U1
Drawing Pad: amzn.to/4cjnwRL
Desk: amzn.to/3KOgubg
Webcam: amzn.to/3VLi586
Mouse Pad: amzn.to/4b6STgA
DISCLAIMER: The above links are affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. Thanks for your support! :)

Хобби

Опубликовано:

 

25 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@scotmcpherson
@scotmcpherson 2 месяца назад
This is great, but I recommend people write their signals in code, the editor sometimes will hiccup and unsubscribe your subscriptions...if they're written in code this doesn't happen.
@keithwinget6521
@keithwinget6521 2 месяца назад
It does appear this is the case, however, there's always an explanation. I've had dozens of different situations where I was able to hunt down a reason for it happening. It's still advantageous to do things in code when you are prototyping, because the most common ways to have signal connection issues is when you are moving things around in the scene tree after connecting them, or making a lot of changes at once without testing, or adding a scene to another scene, making it local and adjusting things in its subtree. Most of my issues have been with custom signals as defined in a script becoming disconnected. This one happens very easily. If your scene gets saved somehow with an error in a script that contains the signal...suddenly all those connections can be completely gone. Similarly, if you are using the @tool annotation, you can be in the middle of an edit to the script and pause too long...If you have something happening in _process or _physics_process or _input etc... anything that you could accidentally trigger execution in your tool script with, it can recognize your script has an "error" in it and fail to compile, resulting in any signals you connected in the node tab simply being gone. When you fix that error, the signal is back, but the connections will still be gone. So, to sum up folks: Do what @scotmcpherson is suggesting to avoid all these pitfalls and more happening to you and making your life suck.
@FormerlyDuck2
@FormerlyDuck2 Месяц назад
THANK YOU, I could not understand why my signal arguments weren't going through. This had exactly the answers I was looking for.
@Paultimate7
@Paultimate7 Месяц назад
Just so someone says it; i really appreciate you doing this in 4k. Also great tutorials.
@GordoFriman
@GordoFriman 20 дней назад
The event bus... 🎉. Now i see the signals as a variable+ at least in the way they are written
@katonfireball6866
@katonfireball6866 2 месяца назад
You have the best tutorials I ever seen
@Stoniye
@Stoniye 2 месяца назад
Great explanation! I also love the cklicking of you keyboard, it is so satisfying😫
@PAPRPL
@PAPRPL 2 месяца назад
"That's 10, but okay" 😂
@alexleonardkrea
@alexleonardkrea 2 месяца назад
Great job sir!
@Gwizz1027
@Gwizz1027 2 месяца назад
I recognize that wizard
@queblegamedevelopment4143
@queblegamedevelopment4143 2 месяца назад
🤫
@SnakeNBF
@SnakeNBF 2 месяца назад
The player_ref thing 😮
@Reymax164
@Reymax164 2 месяца назад
Same reaction 😅
@katonfireball6866
@katonfireball6866 2 месяца назад
it would be great if you make tutorial how to make breakable objects, for example, when window hit by a bullet
@特殊符号无法输入特殊
@特殊符号无法输入特殊 2 месяца назад
If there was no eventBus, then everyone would be defining signals everwhere. This could lead to confusion as to where the signals come from. But with eventBus, all the signals are in eventBus, and can be viewed and managed is it the correct way to understand?
@artcrtc5028
@artcrtc5028 2 месяца назад
what the signal??