Search Unity

Going/Select Image from button and vice versa using keyboard only

Discussion in 'UGUI & TextMesh Pro' started by Sudarmin-Then, Nov 27, 2014.

  1. Sudarmin-Then

    Sudarmin-Then

    Joined:
    Nov 27, 2014
    Posts:
    27
    How do I select Image after I select a button with only keyboard?
    going from button to button is easy using the EventSystem.FirstSelected on a button, then Unity will automatically select another button when I press left/right/up/down
    but it looks it can't go from Button to Image vice versa, or Image to Image
    Is there a way around to do this?
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    Image isn't a Selectable element. If you want to do this add the included 'Selectable' script to your image.
     
    Sudarmin-Then likes this.
  3. Sudarmin-Then

    Sudarmin-Then

    Joined:
    Nov 27, 2014
    Posts:
    27
    Wow, Great! Thanks for the reply, I understand now, Unity can also make the button unselectable by keyboard, by changing the navigation to None