Skip to content

Instantly share code, notes, and snippets.

View Kudoshi's full-sized avatar

Kudoshi

View GitHub Profile
@Kudoshi
Kudoshi / ScrollAndPinch.cs
Last active October 25, 2023 08:29 — forked from ditzel/ScrollAndPinch.cs
Pinch and Scroll to Move and Zoom in Unity for Mobile Games
/*
Original Script By: Ditzel
Youtube Video Link: https://www.youtube.com/watch?v=KkYco_7-ULA&ab_channel=DitzelGames
Uses of this script:
For controlling camera movement: Pan, zoom and rotate
How to use:
Set this on an empty game object positioned at (0,0,0) and attach your active camera.
The script only runs on mobile devices or the remote app.