How to Navigate Unity UI with Gamepad & Keyboard (New Input System)

Опубликовано: 13 Май 2026
на канале: Philip Herlitz
571
19

In this Unity tutorial, I show you how to fix UI navigation so players can use a keyboard or gamepad without needing to click with a mouse first. We cover setting up the Event System with the New Input System, using "First Selected" for main menus, and how to force UI selection via C# or PlayMaker when opening pop-up menus like Settings.

🎮 Wishlist my game on Steam:https://store.steampowered.com/app/38...
A 2D cyberpunk party game with jetpacks, drones, and trading! Demo coming Jan 26th.

In this video, you will learn:

How to set up the Unity Event System for the New Input System.

How to use the "First Selected" field to auto-select buttons on start.

How to visualize UI navigation paths in the Editor.

How to fix "stuck" controls when opening pop-up windows using SetSelectedGameObject.

Solutions for both C# developers and PlayMaker users.

⏱️ Timestamps:
0:00 - Intro: The Mouse Dependency Problem
0:45 - Setting up the Event System & New Input System
1:55 - Using "First Selected" for Main Menus
2:45 - Visualizing Navigation Paths (Gizmos)
3:30 - The Problem: Losing Focus on Pop-up Menus
4:15 - Solution A: PlayMaker (UI Set Selected Game Object)
4:55 - Solution B: C# Script (EventSystem.current.SetSelectedGameObject) 5:45 - Testing the Fix
6:20 - My Upcoming Steam Game & Outro

#UnityTutorial #GameDev #UnityUI #IndieDev #PlayMaker #UnityTips

Join me On Discord:   / discord  
Support Me On Patreon:   / philipherlitz  
Support Me on Itch: https://mrphilipjoel.itch.io