Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Why is Input.GetAxis("Vertical") not returning an integer?

BarjiBarji Member
edited May 2020 in Programming

For some reason holding "W" is returning a value similar to a controller. Starting at 0 and approaching 1. I have never seen this before but i'm probably being really dumb, any help would be appreciated.

Best Answer

  • MrSlugMrSlug Member
    Accepted Answer

    Hi @Barji,

    Input.GetAxis returns a value between -1 and 1 with increments/decrements of 0.05.

    If you're looking for it to return either -1, 0 or 1, Input.GetAxisRaw would be what you're looking for.


Sign In or Register to comment.