To test how TouchScript works, create an empty scene and drag two prefabs from TouchScript/Prefabs folder to the scene: TouchManager and Cursors.
or clone the repository and use the source ( more info on how to do it).download the latest release from Github,.To use TouchScript in your project you either need to Licensed under MIT license.ĭeveloped by Valentin Simonov. TouchScript makes it easy to test multi-touch gestures without an actual multi-touch device using built-in second touch simulator (activated with Alt + click), TUIOPad on iOS or TUIODroid on Android.TouchScript comes with many examples and is extensively documented.TouchScript manages gestures in transform hierarchy and makes sure that the most relevant gesture will receive touch input.TouchScript allows you to write your own gestures and custom pointer input logic.
TouchScript includes common gesture implementations: press, release, tap, long press, flick, pinch/scale/rotate.TouchScript supports many touch input methods starting from smartphones to giant touch surfaces: mouse, Windows 7/8 touch, mobile (iOS, Android, Windows Store/Windows Phone), TUIO.Your touch-related code will be the same everywhere. TouchScript abstracts touch and gesture logic from input methods and platforms.
This is where you will need TouchScript - it makes handling complex gesture interactions on any touch surface an effortless job. to have a button with a tap gesture placed on a zoomable window. The hard part is to make these gestures work together, e.g. When working on a project for mobile devices or PCs with touch input you will soon require basic gestures like tap, pan, pinch and zoom - they are not hard to implement manually using Unity API or using a package from Asset Store. TouchScript - multi-touch library for Unity