Simple Scroll Zoom Unity Tutorial

Опубликовано: 15 Июнь 2023
на канале: Gatsby
3,130
53

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.


На этой странице сайта вы можете посмотреть видео онлайн Simple Scroll Zoom Unity Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Gatsby 15 Июнь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,130 раз и оно понравилось 53 зрителям. Приятного просмотра!