input.getaxis( horizontal ) unity code example Example: unity input get axis float movement = Input.GetAxis("Horizontal") * speed;