mouse wheel detect

Hi guys,

I am doing my thesis in unity, and I cant find how unity manages the mouse wheel in order to control the zoom of the camera.

any idea?

thanks in advance! :smile:

get the mousewheel information from Input.GetAxis(“Mouse ScrollWheel”) and move the camera along the z axis based on it?

Really really thanks! :smile::smile::smile:

I didnt see the “Mouse ScrollWheel” in the documentation :smile:

thanks!:wink:

Go to the input manager and click on the help button. “Mouse ScrollWheel” is set up as a default entry in the manager; it doesn’t necessarily exist (you can delete it or rename it, or make a new entry for scrollwheels).

–Eric