In this Unity tutorial I will show you how to code a simple camera zoom script that allows you to change the camera's size using the scroll wheel. I first show you a quick and simple solution for zooming, then a more robust solution with multiple variables to control zoom bounds and smooth the camera as it zooms in.
Also, if you wish to keep the camera in perspective mode for 3D, you simply need to change every mention of orthographicSize to fieldOfView in the script.
Cheers.
En esta página del sitio puede ver el video en línea Simple Scroll Zoom Unity Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Gatsby 15 junio 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,130 veces y le gustó 53 a los espectadores. Disfruta viendo!