Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

[Button] Keyboard and Mouse Highlighting

$
0
0
Hi.
I'm working on a code generated menu that should work with both keyboard and mouse inputs.

1. I call EventSystem.current.SetSelectedGameObject(firstMenuOption) to get the first button highlighted
2. If the user decides to use the mouse instead of the keyboard
3. Then both the firstMenuOption and the button under the mouse cursor is in the highlighted state

I assume this is expected behaviour? Should I run through all my buttons and deselect them if the mouse is over a button ? Or is...

[Button] Keyboard and Mouse Highlighting

Viewing all articles
Browse latest Browse all 1466670

Trending Articles