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.
Sur cette page du site, vous pouvez voir la vidéo en ligne Simple Scroll Zoom Unity Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Gatsby 15 juin 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,130 fois et il a aimé 53 téléspectateurs. Bon visionnage!