/Unity-UI-Navigation-for-Preventing-Deselection

Preventing UI deselection in Unity when using keyboard and mouse navigation.

Primary LanguageC#

Unity-UI-Navigation-for-Preventing-Deselection

Preventing UI deselection in Unity when using keyboard and mouse navigation.

Usage

  1. Add EventSystemHelper.cs to your Event System game object. (Assuming there is always only one Event System present.)
  2. Add AutoSelect.cs to Selectable UI. Upon mouse enter, the UI will be automatically selected.