Search Unity

Xbox One controller on Legacy GUI

Discussion in 'Immediate Mode GUI (IMGUI)' started by Nameless_Studio, Mar 26, 2018.

  1. Nameless_Studio

    Nameless_Studio

    Joined:
    Oct 27, 2016
    Posts:
    1
    I want to port an old game of mine to Xbox One but this game uses Legacy GUI and I need to make the menus explorable with the controller, how can I do?
     
  2. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,694
    Unfortunately it's not automatic. Legacy GUI doesn't natively support joystick or keyboard navigation.

    You'll need to use GUI.FocusControl to specify which UI element currently has navigation focus.

    And then read the joystick inputs (e.g., Input.GetAxis) to change which element has focus.