Search Unity

Question Is the GetAxis for 1D movement still only returning -1, 0 or 1 with the new input system?

Discussion in 'Input System' started by sergio93, Jul 13, 2022.

  1. sergio93

    sergio93

    Joined:
    Aug 28, 2020
    Posts:
    52
    Hello,

    I decided to move my project into using the new Input System but I got an issue where for my 1D movement, the values that I get from the A and D keys (say for left and right axis movement) are only -1, 0 or 1. With the old system I was able to use GetAxis and get smooth transitions.

    I saw on some posts from a couple years ago that this was not supported yet, and that one can just do some lerping. Is that still the case?

    Cheers