Smart UI Focus & Navigation¶
Reliable controller & keyboard focus for Unity uGUI.
Keep your existing Unity uGUI menu system. Add reliable keyboard/gamepad focus and smarter directional navigation without replacing your UI framework, EventSystem, or Input System UI module.
Compatible with Unity 2022.3 LTS and Unity 6. Validated with Built-in, URP, and HDRP.
What it provides¶
Focus lifecycle
Recover invalid selection and resolve a configured default or valid descendant when keyboard or gamepad focus is needed.
Menu continuity
Remember selection per scope and restore the exact prior control after a modal closes when it remains valid.
Input awareness
Observe Mouse, Keyboard, and Gamepad UI activity through the New Input System without replacing Unity's input module.
Directional control
Generate bounds-aware links for freeform and structured layouts, with explicit per-direction overrides when required.
Unity's built-in navigation remains suitable for many ordinary menus. Smart UI Focus & Navigation is intended for projects that need more control over focus lifecycle, structured layouts, and directional edge cases while continuing to use standard uGUI Selectable components.
Start here¶
- Review Requirements & Compatibility, then follow installation.
- Follow the getting started guide.
- Open the included sample scene.
For detailed behavior, see focus management, input modes, and smart navigation.