Simple script that destroys an object when it is not visible anymore
The DemoScene demo script
Demo script for 3d orbit
Demo script component, allows easily adding a gesture through Unity components
Allows hiding a dimming view
DPad demo script
Demo a drag and swipe away
A dynamic grid that lays itself out in rows and columns
Demo script that matches a drawn image
Joystick demo script
Move and fire demo script
Multi-drag component script
Multiple finger at once tap demo script
One finger rotate and scale demo script
Pan demo script
Platform specific view demo script
Demo raycast script, checks a tap and sees which object was tapped
Swipe demo script
Tap and double tap demo script
This demo script shows how to implement virtual touches. Mapping AR, VR or any other input system to fingers is super easy. Please look over all the TODO: in this script.
Scrollview demo script
Zoom pan demo script
Contains device information
Allows moving a camera in 3D space using pan, tilt, rotate and zoom mechanics
Allow interacting with cross platform input without knowing whether the cross platform input script is in the project
Represents a dpad that can be used just like a real-controller with 4 directions
Allows a long tap and hold to move an object around and release it at a new point. Add this script to the object to drag.
First person controller that allows using pans and taps to move and jump
Wraps the fingers image gesture in a way that allows easy and quick creation of multiple image gestures
A little higher level script that includes an option to allow line renderers to draw the path for you. You can leave the line renderers and match text as null if you will be drawing your own lines and text for when there is a match.
The joystick anywhere script creates a virtual joystick wherever the pan starts. This acts as the joystick center until finger lifts. When a new pan starts, the new joystick center is wherever that pan started.
Represents a joystick that can move in arbitrary direction or 8 axis
Allows dragging multiple objects with just one gesture
Unity component that wraps a one finger scale gesture
Useful script for using a pan gesture to move an object forward or back along z axis using pan up and down and left or right using pan left or right
Allows orbiting a target using a pan gesture to drag up and down or left and right to orbit, and pinch to zoom in and out
Allows two finger pan, scale and rotate on a game object
Allow controlling a rigid body in 2D with jump, move and drop through platform ability
Allows rotating a transform using a pan gesture, allowing the transform to be rotated around using left/right or up/down pans.
Allows rotating around a target using a two finger rotation gesture
The main Unity fingers script - only one of these should exist. FingersScript.Instance gives you easy access to add and remove gestures.
Represents a scroll view, very similar to UIScrollView from UIKit.
A third person controller that allows movement and jumping
Allows zooming and panning a camera using pan and scale gestures. A tap gesture is also included to force the camera to look at the tapped object.
Logger for gestures
A gesture recognizer allows handling gestures as well as ensuring that different gestures do not execute at the same time. Platform specific code is required to create GestureTouch sets and pass them to the appropriate gesture recognizer(s). Creating extension methods on the DigitalRubyShared.GestureRecognizer class is a good way.
Gesture recognizer component event
Gesture recognizer component event with Vector2
Base class for component gesture scripts with a type of gesture
Base class for component gesture scripts
Update event for gesture recognizers
Tracks and calculates velocity for gestures
Represents an image that can be drawn with a gesture - when you get a valid image you care about, it is good practice to call Reset on this gesture.
Attempts to create an image out of the gesture and compare with a set of images
Allows recognizing gestures that match the pattern of an image
A long press gesture detects a tap and hold and then calls back for movement until the touch is released
Wraps a long press gesture in a component
Allows rotating an object with just one finger. Typically you would put this on a button with a rotation symbol and then when the user taps and drags off that button, something would then rotate.
Wraps a one touch rotate gesture in a component
Allows scaling with a single touch
Warps a one touch scale gesture in a component
A pan gesture detects movement of a touch
Wraps a pan gesture in a component
A rotate gesture uses two touches to call back rotation angles as the two touches twist around a central point
Wraps a rotate gesture in a component
A scale gesture detects two fingers moving towards or away from each other to scale something
Wraps a scale gesture in a component
A swipe gesture is a rapid movement in one of five directions: left, right, down, up or any.
Wraps a swipe gesture in a component
A tap gesture detects one or more consecutive taps. The ended state denotes a successful tap.
Wraps a tap gesture in a component
Contains a touch event
Entry for an image gesture
Main thread callback
Gesture recognizer state change event - gesture.CurrentTrackedTouches contains all of the current touches
Obsolete, use GestureRecognizerStateUpdatedDelegate
Types of movement
Double tap reset mode
Gesture level unload option
Different types of object modes for component gestures
Gesture recognizer states
Swipe gesture directions - assumes 0,0 is in the bottom left
Swipe gesture recognizer end mode