Class PinchGestureRecognizer
A continuous gesture recognizer that interprets pinching gestures involving two touches.
Implements
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
Syntax
public class PinchGestureRecognizer : GestureRecognizer<float>, IGestureRecognizer
Methods
Recognize(AppUITouch[])
Main method to recognize a gesture.
A concrete implementation of a gesture recognizer should override this method to recognize a gesture. The implementation should also assume that this method will be called every frame.
Declaration
public override void Recognize(AppUITouch[] appuiTouches)
Parameters
Type | Name | Description |
---|---|---|
AppUITouch[] | appuiTouches | The current touch inputs for the current frame. |
Overrides
Remarks
Sometimes, touch inputs can be lost from a frame to another (no AppUITouch event with an Ended or Canceled phase will be sent). The concrete implementation must aknowledge this and reset its state accordingly.
Reset()
Resets the gesture recognizer to its initial state.
Declaration
public override void Reset()