|
MeshBaker
|
Base class used by most common gestures that can be performed with and arbitrary number of fingers, such as drag, tap, swipe... More...
Inherits GestureRecognizer.
Inherited by DragGestureRecognizer, LongPressGestureRecognizer, SwipeGestureRecognizer, and TapGestureRecognizer.
Public Attributes | |
| int | RequiredFingerCount = 1 |
| Exact number of touches required for the gesture to be recognized More... | |
Public Attributes inherited from GestureRecognizer | |
| GestureResetMode | ResetMode = GestureResetMode.StartOfTouchSequence |
| Get or set the reset mode for this gesture recognizer More... | |
Protected Member Functions | |
| override int | GetRequiredFingerCount () |
| Return the exact number of active touches required for the gesture to be valid More... | |
Protected Member Functions inherited from GestureRecognizer | |
| virtual void | Reset () |
| Put back the gesture recognizer in Ready state and reset any relevant data ResetMode More... | |
| override void | Start () |
| virtual void | OnTouchSequenceStarted () |
| Called when the first finger of a new multi-touch sequence has touched the screen More... | |
| virtual void | OnTouchSequenceEnded () |
| Called when all the fingers that participated in the current multi-touch sequence are no longer touching the screen More... | |
| override void | OnUpdate (FingerGestures.IFingerList touches) |
| This is called after FingerGestures has updated the state of each finger More... | |
| virtual GestureState | OnReady (FingerGestures.IFingerList touches) |
| virtual bool | ShouldFailFromReady (FingerGestures.IFingerList touches) |
| virtual bool | CanBegin (FingerGestures.IFingerList touches) |
| This controls whether or not the gesture recognition should begin More... | |
| abstract void | OnBegin (FingerGestures.IFingerList touches) |
| Method called when the gesture recognizer has just started recognizing a valid gesture More... | |
| abstract GestureState | OnActive (FingerGestures.IFingerList touches) |
| Method called on each frame that the gesture recognizer is in an active state More... | |
| bool | Young (FingerGestures.IFingerList touches) |
| Check if all the touches in the list started recently More... | |
Protected Member Functions inherited from FGComponent | |
| virtual void | Awake () |
| virtual void | OnEnable () |
| virtual void | OnDisable () |
Properties | |
| Vector2 | StartPosition [get, protected set] |
| Initial finger(s) position More... | |
| Vector2 | Position [get, protected set] |
| Current finger(s) position More... | |
Properties inherited from GestureRecognizer | |
| GestureState | PreviousState [get] |
| Get the previous gesture state More... | |
| GestureState | State [get, protected set] |
| Get or set the current gesture state More... | |
| bool | IsActive [get] |
| Return true if the gesture recognition has started and is on-going State More... | |
| FingerGestures.ITouchFilter | TouchFilter [get, set] |
| Get or set the touch filter used to modify the list of active touches about to be processed by the gesture recognizer More... | |
Base class used by most common gestures that can be performed with and arbitrary number of fingers, such as drag, tap, swipe...
The position of the fingers are averaged and stored in the StartPosition and/or Position fields
|
protectedvirtual |
Return the exact number of active touches required for the gesture to be valid
Implements GestureRecognizer.
| int AveragedGestureRecognizer.RequiredFingerCount = 1 |
Exact number of touches required for the gesture to be recognized
|
getprotected set |
Current finger(s) position
|
getprotected set |
Initial finger(s) position
1.8.12