Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Zoom Camera with mouse scroll

Discussion in 'Getting Started' started by ashishm, Mar 12, 2015.

  1. ashishm


    Jun 27, 2014
    Hi All,

    Can somebody tell me how to zoom in/out camera with mouse scroll in unity through javascript
  2. Schneider21


    Feb 6, 2014
    Generally, you're more likely to get help with something here if you show you've already put effort into solving the problem yourself. In this case, if you posted a script that you found by searching (because I searched "Unity scroll camera zoom" and found several JS results right away) and were just having trouble integrating it into your project. Even then, providing specific problems, like "Here is the exact code I am using, and I'm getting this error I don't understand on this line" is much more likely to convince people to donate their time in providing you assistance.

    If you don't have even have a clue where to start, most people will just direct you to the official tutorials at, which is definitely where you should start.
    blizzy and OboShape like this.
  3. OboShape


    Feb 17, 2014