Search Unity

EventSystem Button Script and using joystick / gamepad

Discussion in 'Scripting' started by Gaspedal, Aug 30, 2018.

  1. Gaspedal

    Gaspedal

    Joined:
    Mar 29, 2009
    Posts:
    376
    I have created a menu screen with some buttons using event system and event triggers with unity button script. With Mousepointer it works great, but how can I set the first button always enabled as default (selected like highlighted) and navigate with the gamepad up & down-stick without using the mouse too?

    thanks in advance
     
    BMRG14 likes this.
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
  3. Gaspedal

    Gaspedal

    Joined:
    Mar 29, 2009
    Posts:
    376
    @eses: Thank you very much! This is exactly what I needed. thx :) You have really help me to solving a big problem. :)
     
    eses likes this.