title: My scroll wheel isn't working at all in unity w/ c#?
body: <p>I'm trying to modify a script that lets the player zoom the camera. Before, scrolling to change the fov worked fine but i wasn't happy with the high fov stretching around the edges so I decided to switch to physical camera movement. For some reason my scroll input doesn't work anymore? This is my code:</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class cameraManager : MonoBehaviour
  {
      public GameObject cameraAnchor;
  
      public int cameraState;
      public Transform playerPos;
  
      public float maxZoomX;
      public float maxZoomY;
      public float zoomSensitivity;
  
      // Update is called once per frame
      void Update()
      {
          cameraAnchor.transform.position = (playerPos.position + new Vector3(6,10,0)); //camera anchor position relative to player
  
          if (cameraState == 3){
              Vector3 zoom = Camera.current.transform.position;
              zoom.x += Input.GetAxis(&quot;Mouse ScrollWheel&quot;) * zoomSensitivity; // changing camera location with scroll wheel
              zoom.y += Input.GetAxis(&quot;Mouse ScrollWheel&quot;) * zoomSensitivity; // changing camera location with scroll wheel
              zoom.x = Mathf.Clamp(zoom.x, cameraAnchor.transform.position.x, cameraAnchor.transform.position.x + maxZoomX); // clamping zoom
              zoom.y = Mathf.Clamp(zoom.y, cameraAnchor.transform.position.y, cameraAnchor.transform.position.y + maxZoomY); // clamping zoom
              print(Input.GetAxis(&quot;Mouse ScrollWheel&quot;));//testing scroll input
  
              Camera.current.transform.position = zoom; //setting zoom
          }
          else{
              Camera.current.transform.position = cameraAnchor.transform.position; //reset camera anchor if not in 3rd person
          }
          
      }
  }
  
  </code></pre>
  <p>As you can see above, i've tested scrolling with print, which constantly produces a 0, regardless of whether i'm scrolling or not. I've looked at the input settings for the project and everything looks fine there.</p>
  <p>Edit: here's a screenshot of my input page<a href="https://i.stack.imgur.com/sLHTK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sLHTK.png" alt="enter image description here" /></a></p>