Pinch to Zoom and Panning on Mobile in Unity @pressstart6864
Pinch to Zoom and Panning on Mobile in Unity  @pressstart6864
Uploaded August 2018 | Updated September 2026, 2 weeks ago
In this tutorial I explain how to write a C# script that will allow you to pinch to zoom and pan around the screen for a mobile or touch screen device.
SUBSCRIBE: bit.ly/2Js78lE
============
In this video I will show you:

1:00 How to build a script to pan around the screen
3:07 How to zoom using the mouse's scroll wheel
5:13 How to zoom using the pinch technique

COPY & PASTE SOURCE CODE:
https://pressstart.vip/tutorials/2018/07/12/44/pan--zoom.html

MORE TUTORIALS:
https://pressstart.vip/unity-tutorials
Pinch to Zoom and Panning on Mobile in UnityUnity - Shooting Enemies with Projectiles2D Perspective Effect with an Orthographic Camera (Parallax)Unity - How To Contain RigidBodies Inside 2D CollidersA Perfect Jump in Unity - A Complete Guide#BrackeysGameJam: Day 4Super Mario - Running Tutorial in UnityUnity - How to Detect Collision in C# [Using Colliders]Unity - How to Keep ScoreUnity - Keeping The Player Within Screen BoundariesWorking with Time in UnityUnity Movement [RigidBody vs Translate]
Press Start |

Pinch to Zoom and Panning on Mobile in Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER