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.
In questa pagina del sito puoi guardare il video online Simple Scroll Zoom Unity Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Gatsby 15 giugno 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,130 volte e gli è piaciuto 53 spettatori. Buona visione!