Today, we are going to learn about UIs in Bevy. Our main goal is to end up with a main menu that contains 2 buttons, one to launch our game, and an...
For further actions, you may consider blocking this person and/or reporting abuse
May I ask the question what is the difference between NodeBundle and ButtonBundle?
Shouldn't we use ButtonBundle here?
We do use it in the
buttonfunction. Or maybe you meant elsewhere?It is analog to the difference between a
divtag and abuttontag in HTML (if you are familiar with web development).Use the
NodeBundlewhenever you need something not much interactive.Use the
ButtonBundlewhenever you need a button / clickable thing.Sorry, I am new to Rust and Bevy, have not noticed that we use it. Thanks for the explanation!