Search Unity

Unity Controller InputManager: Character doesn't jump?

Discussion in 'Editor & General Support' started by Fundata, Jul 23, 2018.

  1. Fundata

    Fundata

    Joined:
    Nov 14, 2016
    Posts:
    21
    hello

    I'm pretty confused. Character jumps fine with spacebar, and runs correctly with WASD as well as controller. But it won't jump with controller. I thought I set Input Manager correctly (screenshots below)
    I have a PS4 Controller. Jumping should be "joystick button 1" (according what I read online..)
    I'm seriously stuck here. Can anyone help?



     
  2. RockMore

    RockMore

    Joined:
    Aug 22, 2020
    Posts:
    1
    In Unity's Input Manager (Edit->Project Settings->Input Manager), if the names of the inputs are both Jump, both input methods should be able to trigger
    Input.GetButton("Jump")
    for example.

    If you're only pressing buttons, you should leave the Type and Axis to their defaults. "Key or Mouse Button" for Type, "X axis" for Axis.

    Lastly, to define which button should trigger Jump, you may want to look up some of the noted controller mappings below.
    For Xbox360:
    https://wiki.unity3d.com/index.php/Xbox360Controller
    For PS4:
    https://www.reddit.com/r/Unity3D/comments/1syswe/ps4_controller_map_for_unity/