Search Unity

Change which input navigates and presses interactable/button?

Discussion in 'UGUI & TextMesh Pro' started by Thaao, Sep 26, 2015.

  1. Thaao

    Thaao

    Joined:
    Jun 9, 2014
    Posts:
    54
    I want to use keyboard and gamepad navigation for UI. Right now, they just seem to automatically detect "Horizontal," "Vertical," and "Submit" input keys. But is there a way to control which input key "presses" the button? for example, if I wanted all buttons to be pressed by "Jump" instead of "Submit," or if I wanted navigation to use "Strafe" instead of "Horizontal," is there a way to change this without having to write custom scripts for every UI element? I just want to use the built-in UI input navigation.