Pinch and Scroll to Move and Zoom in Unity for Mobile Games

1 Просмотры· 23 Nov 2019
Юрий Антипов
Юрий Антипов
1 Подписчики

This time I will go back to my roots and give you guys a deeper look in mobile development with unity. Besides first or third person there are possibilities to use top down cameras.

I will show how pinch, scrool and zoom can be translated into movement, rotation and zoom in Unity. This all works like in google maps or any photos app. The position you are touching the content will stick to your finger. You can than move them together to in the opposite direction.

The script is ready to go.

Script: https://gist.github.com/ditzel/836bb36d7f70e2aec2dd87ebe1ede432
Unity Remote: https://docs.unity3d.com/Manual/UnityRemote5.html

#ditzelgames #unity #gamedev

Показать больше

 0 Комментарии sort   Сортировать по