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