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.
Nesta página do site você pode assistir ao vídeo on-line Simple Scroll Zoom Unity Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Gatsby 15 Junho 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,130 vezes e gostou 53 espectadores. Boa visualização!