Click or drag to resize

GestureManager Class

Facade for current instance of IGestureManager.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScriptGestureManager

Namespace:  TouchScript
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public sealed class GestureManager : MonoBehaviour

The GestureManager type exposes the following members.

Constructors
  NameDescription
Public methodGestureManager
Initializes a new instance of the GestureManager class
Top
Properties
  NameDescription
Public propertyStatic memberInstance
Gets the GestureManager instance.
Top
Remarks

Why IList instead of Pointer in pointer events?

Right now touchesBegan/touchesMoved/touchesEnded methods in Gesture class accept IList as their argument which seems to overcomplicate a lot of stuff and just calling touchBegan(TouchPoint) would be easier.

The later approach was tried in 7.0 and reverted in 8.0 since it introduced a really hard to fix gesture priority issue. If with lists a gesture knows all touches changed during current frame, individual touchMoved calls have to be buffered till the end of frame. But there's no way to execute gesture recognition logic at the end of frame in the right hierarchical order. This concern resulted in the following issue: https://github.com/TouchScript/TouchScript/issues/203

See Also