How to Control Your Menu with Keyboard/Gamepad | Unity Tutorial

Sasquatch B Studios April 13, 2023
Video Thumbnail
Sasquatch B Studios Logo

Sasquatch B Studios

View Channel

About

Husband & Wife #GameDev Team. Left the business world to follow our dreams. Humbly learning 1 day at a time. Metroidvania game in production. #indiedev #devlog #madewithunity

Video Description

Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - https://www.patreon.com/sasquatchbgames Join our Discord Community! - https://discord.com/invite/aHjTSBz3jH If you've ever made a menu in your game, you'll know that as soon as you implement gamepad controls things don't work quite as easily as they do with the mouse. This video will help you with that! In this easy Unity tutorial, I'll show you how to: - Setup Controls with the Input system (cause using the old Inputs... is gross) - Setup a handy Input Manager to detect Input with multiple control schemes. - Create 2 simple menus we can swap between. - How to set which button is selected first by default when you open a menu (which is the secret sauce to actually setting up gamepad/keyboard navigation in your menu.) - How to explicitly control button/UI element navigation in your menu Link to Download the FREE 2D Asset Pack seen in this tutorial: https://assetpack.sasquatchbstudios.com/ --- In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: https://assetstore.unity.com?aid=1100lwgBQ --- Contents of This Video: ------------------------------------------ 00:00 - Intro 00:17 - Setting Up a Menu with Buttons 02:37 - Setup Input System Keyboard + Gamepad Controls 03:28 - Creating an InputManager to Detect Input with Code 04:10 - Creating a MenuManager to handle Menu Button Actions and Pausing the Game 05:51 - How to Add an Event to a UI Button 07:08 - How to Add Keyboard and Gamepad navigation to your menu 08:23 - How to change menu navigation controls 08:40 - How to change button navigation options (press left to go to THIS button) Who We Are------------------------------------- If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia. Wishlist our Games: Wishlist Samurado on Steam! - https://store.steampowered.com/app/2343270/Samurado/ Wishlist Veil of Maia! - https://store.steampowered.com/app/1948230/Veil_of_Maia/ Don't forget to Subscribe for NEW game dev videos every Monday & Thursday! Follow us on Twitter for regular updates! https://twitter.com/SasquatchBGames #unitytutorial #unity2d #unity3d

You May Also Like

DJI Mini 3 Pro Essentials

AI-recommended products based on this video

Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN
Best Seller

SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN

(71,074)
$29.99$26.61
FREE delivery Sun, Aug 10 on your first order
4K+ bought in past month
Loading...
Anker USB C Charger Cable (6ft 100W, 2Pack), USB 2.0 Type C Fast Charging Cable for iPhone 15 / 15Pro / 15Plus / 15ProMax MacBook Pro 2020, iPad Pro 2020, iPad Air 4, Samsung Galaxy S23+/S23 Ultra ClimatePartner certified

Anker USB C Charger Cable (6ft 100W, 2Pack), USB 2.0 Type C Fast Charging Cable for iPhone 15 / 15Pro / 15Plus / 15ProMax MacBook Pro 2020, iPad Pro 2020, iPad Air 4, Samsung Galaxy S23+/S23 Ultra ClimatePartner certified

(44,904)
$17.99
FREE delivery Wed, Aug 20 on your first order
6K+ bought in past month
Loading...
Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)

Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)

(103,365)
$13.49
5K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month