if (Input.GetAxis("Mouse ScrollWheel") > 0f) // forward { } if (Input.GetAxis("Mouse ScrollWheel") < 0f) // backwards { }