Unity Button Tutorial
It's hard to think of any game that's worth mentioning which doesn't make use of buttons. Whether they're being used to navigate around menus, between scenes, to buy items at shops, count clicks, or progress dialogue, buttons are a cornerstone in video games. In a previous video, we went over how to create UI in unity. In that video, we created some buttons but didn't talk much about the button component or assign any functionality to them. In this video, we'll detail the button component and create two different functions for our buttons, one to change scenes, and one to quit.
► Socials
Twitter: https://twitter.com/the_real_aia
Discord: https://discord.gg/EqxuvWg
My games: https://aiadev.itch.io/
► Get the script: https://unicornone.gumroad.com/l/buttonscript
► Unity UI Tutorial: https://www.youtube.com/watch?v=IuuKUaZQiSU
► Button Navigation: https://www.youtube.com/watch?v=Hn804Wgr3KE
► Download Unity 3D: https://on.unity.com/3cbxhXY
For more educational content on video game development, unity tutorials, and c# programming don't forget to subscribe!
Chapters:
0:00 Introduction
0:41 Understanding the button component
2:27 Creating a C# script with button functions
4:50 Assigning Button OnClick functions
7:20 Testing the buttons
7:44 Outro
····················································································
♪
#unity3d #unitytutorial #gamedev
Other Videos By AIA
2021-09-27 | How to Play Unity Sound Effects |
2021-09-21 | Make a Unity Glow Effect in 15 seconds |
2021-09-20 | Make a Unity Text Mesh Pro Custom Font (in 15 seconds) |
2021-09-19 | How To Make A Unity Mini Golf Game (part 1) |
2021-09-15 | Make a Unity 2D Camera Follow Player in 15 seconds |
2021-09-11 | Making a Unity Idle Game [EP 1] |
2021-09-02 | Simple Unity Character Customization Tutorial |
2021-08-30 | Unity Git Tutorial (Backup & version control) |
2021-08-26 | Unity Drag and Drop Script | (Unity 3D tutorial) |
2021-08-24 | How to EASILY make a TIMER in Unity |
2021-08-13 | Unity Button Tutorial |
2021-08-10 | Unity UI Tutorial | An introduction |
2021-08-06 | How to create an FPS display | Unity Tutorial |