Author Topic: Mouse & Keyboard GUI navigation  (Read 1971 times)

parera95

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Mouse & Keyboard GUI navigation
« on: August 04, 2014, 08:24:53 AM »
Hi, i'm a new user of the NGUI plugin, and I have a problem when I tried to use Keyboard and mouse in the same menu, the problem I have is that when i selct something whith the Keyboard, and after i select another option with mouse bouth are hightlited. I want to refresh the selction giving priority to keyboard. There's a way to fix my problem?

Sorry if I spell some word wrong, I'm Spanish.

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Mouse & Keyboard GUI navigation
« Reply #1 on: August 04, 2014, 11:11:07 AM »
Keyboard selection and mouse selection are different. Keyboard selection is achieved by actually selecting the game object. Mouse selection is achieved by hovering over something. Hovering doesn't clear selection. If you want it to, then just set UICamera.selectedObject = null; in OnHover.