Search Unity

Need help either disabling the mouse or making it work with the keyboard in the menu.

Discussion in 'UGUI & TextMesh Pro' started by Persegan, Jul 21, 2015.

  1. Persegan

    Persegan

    Joined:
    Feb 12, 2015
    Posts:
    14
    Hello everyone:

    I am trying to make a menu for a game me and some friends are making, and I'm using the unity UI tools implemented in version 4.6. The problem we have is that if you put the mouse over one of the buttons and then press the arrow keys to navigate, the button you have the mouse on stays highlighted, and we want only one of the buttons to be highlighted at any time. I've searched ways to disable the mouse to solve this problem, and I found cursor.visible and the function to lock it in the middle of the screen, but it still interacts with the game when pressing the left mouse button.

    Any suggestions?
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
  3. Persegan

    Persegan

    Joined:
    Feb 12, 2015
    Posts:
    14
    Thanks for the idea! Unfortunately, it seems the input mode property is obsolete in unity 5.1, which is the version I'm using :S
     
  4. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    wow that property didn't last long :rolleyes: