Следующее

Unity - Mobile Panning with a Perspective Camera

3 Просмотры· 11/23/19
Юрий Антипов
Юрий Антипов
2 Подписчики
2

In this tutorial I explain how to write a C# script that will allow you to pan around the screen for a mobile or touch screen device in a perspective or 3D environment.
SUBSCRIBE: https://bit.ly/2Js78lE
============
In this video:
1:00 - Understanding How Panning Works
1:15 - Setting up the Panning Script
2:05 - Difference between Perspective and Orthographic Cameras
2:35 - Creating the function to plot our points using Raycast
5:10 - Finished Example
5:30 - Finished Example using SimpleTown Asset Store Package

COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2018/11/9/78/perspective-camera-panning.html

ORTHOGRAPHIC PANNING & PINCH TO ZOOM TUTORIAL:
https://pressstart.vip/tutorials/2018/07/12/44/pan--zoom.html

SIMPLE TOWN ASSET STORE PACKAGE:
https://assetstore.unity.com/packages/3d/environments/urban/simple-town-cartoon-assets-43500

MORE TUTORIALS:
https://pressstart.vip/unity-tutorials

WEEKLY DEVELOPER STORIES AND TIPS:
https://pressstart.vip/newsletter

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

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


Следующее