Click or drag to resize

MetaGesture Class

Converts Pointer events for target object into separate events to be used somewhere else.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScript.CoreDebuggableMonoBehaviour
            TouchScript.GesturesGesture
              TouchScript.GesturesMetaGesture

Namespace:  TouchScript.Gestures
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public sealed class MetaGesture : Gesture

The MetaGesture type exposes the following members.

Constructors
  NameDescription
Public methodMetaGesture
Initializes a new instance of the MetaGesture class
Top
Properties
  NameDescription
Public propertyActivePointers
Gets list of gesture's active pointers.
(Inherited from Gesture.)
Public propertyDebugMode
Gets or sets if this object should show its debug information.
(Inherited from DebuggableMonoBehaviour.)
Public propertyDelegate
Gets or sets an object implementing IGestureDelegate to be asked for gesture specific actions.
(Inherited from Gesture.)
Public propertyMaxPointers
Gets or sets maximum number of pointers this gesture reacts to. The gesture will not be recognized if it has more than MaxPointers pointers.
(Inherited from Gesture.)
Public propertyMinPointers
Gets or sets minimum number of pointers this gesture reacts to. The gesture will not be recognized if it has less than MinPointers pointers.
(Inherited from Gesture.)
Public propertyNormalizedScreenPosition
Gets normalized screen position.
(Inherited from Gesture.)
Public propertyNumPointers
Gets the number of active pointerss.
(Inherited from Gesture.)
Public propertyPreviousNormalizedScreenPosition
Gets previous screen position.
(Inherited from Gesture.)
Public propertyPreviousScreenPosition
Gets previous screen position.
(Inherited from Gesture.)
Public propertyPreviousState
Gets previous gesture state.
(Inherited from Gesture.)
Public propertyRequireGestureToFail
Gets or sets another gesture which must fail before this gesture can be recognized.
(Inherited from Gesture.)
Public propertyScreenPosition
Gets current screen position.
(Inherited from Gesture.)
Public propertySendMessageTarget
Gets or sets the target of Unity messages sent from this gesture.
(Inherited from Gesture.)
Public propertySendStateChangeEvents
Gets or sets a value indicating whether state change events are broadcasted if UseUnityEvents is true.
(Inherited from Gesture.)
Public propertySendStateChangeMessages
Gets or sets a value indicating whether state change events are broadcasted if UseSendMessage is true.
(Inherited from Gesture.)
Public propertyState
Gets current gesture state.
(Inherited from Gesture.)
Public propertyUseSendMessage
Gets or sets whether gesture should use Unity's SendMessage in addition to C# events.
(Inherited from Gesture.)
Public propertyUseUnityEvents
Gets or sets whether gesture should use Unity Events in addition to C# events.
(Inherited from Gesture.)
Top
Methods
  NameDescription
Public methodAddFriendlyGesture
Adds a friendly gesture.
(Inherited from Gesture.)
Public methodCanBePreventedByGesture
Determines whether this instance can be prevented by specified gesture.
(Inherited from Gesture.)
Public methodCancel
Cancels this gesture.
(Inherited from Gesture.)
Public methodCancel(Boolean, Boolean)
Cancels this gesture.
(Inherited from Gesture.)
Public methodCanPreventGesture
Determines whether this instance can prevent the specified gesture.
(Inherited from Gesture.)
Public methodGetScreenPositionHitData
Returns HitData for gesture's ScreenPosition, i.e. what is right beneath it.
(Inherited from Gesture.)
Public methodHasPointer
Determines whether gesture controls a pointer.
(Inherited from Gesture.)
Public methodIsFriendly
Checks if a gesture is friendly with this gesture.
(Inherited from Gesture.)
Public methodShouldBegin
Specifies if gesture can begin or recognize.
(Inherited from Gesture.)
Public methodShouldReceivePointer
Specifies if gesture can receive this specific pointer point.
(Inherited from Gesture.)
Top
Events
  NameDescription
Public eventCancelled
Occurs when gesture is cancelled.
(Inherited from Gesture.)
Public eventPointerCancelled
Occurs when a pointer is cancelled.
Public eventPointerPressed
Occurs when a pointer is added.
Public eventPointerReleased
Occurs when a pointer is removed.
Public eventPointerUpdated
Occurs when a pointer is updated.
Public eventStateChanged
Occurs when gesture changes state.
(Inherited from Gesture.)
Top
Fields
  NameDescription
Public fieldOnStateChange
Occurs when gesture changes state.
(Inherited from Gesture.)
Public fieldStatic memberPOINTER_CANCELLED_MESSAGE
Message dispatched when a pointer is cancelled.
Public fieldStatic memberPOINTER_MOVED_MESSAGE
Message dispatched when a pointer moves.
Public fieldStatic memberPOINTER_PRESSED_MESSAGE
Message dispatched when a pointer begins.
Public fieldStatic memberPOINTER_RELEASED_MESSAGE
Message dispatched when a pointer ends.
Top
See Also