The Zoom Script Zoomer Script For changing a players camera zoom with ease!
About
What is this script? Well in fact this script is to make it possible for the player to zoom in to an object or to zoom in general. This script allows the “scripter” to change what zoom distance they want it to go to or to use as a general resource for the developer to make zoomed in images for their game.
How to use it?
To use this script all you need to do is;
- Insert the script inside “StarterPlayerScripts” for it to work best.
- Then go inside the script to change any values you want to change (the zoom distance and the zoom in speed as well)
- Next, you can change the button which activates the script to do the zoom, for now I made it so you use the middle button on the mouse (click on the scroll button on your mouse)
- Finally it is time to test your script to make sure it works, by using the button you decided to use for this to work it should zoom the camera in and make the view smaller to what object you are looking at.
How does it work?
The script works with F.O.V (Field of view) and makes the field of view as small as <1 to make it zoom really far into the distance. I made it so it goes below 1 of the limit which has been set so it can zoom in much further than you would normally zoom in without the script.
So when you click on the button to activate the script it tweens the F.O.V to a very small value in the time the tween has been set to. This means you have made a zoom script for the player to use or for the developer to use for their images for the game etc.
Get the script here
Click here for the scrip, thank you!