class in UnityEngine.XR.WSA.Input
/
Implemented in:UnityEngine.VRModule
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseManager class with API for recognizing user gestures.
GestureRecognizer performs only the minimal disambiguation between the set of gestures that you request. For example, if you request just Tap, the user may hold their finger down as long as they like and a Tap will still occur when the user releases their finger. For more details on the types of gestures available see GestureSettings.
GestureRecognizers will only receive events after StartCapturingGestures is called. StopCapturingGestures can be called again to stop events. This allows for GestureRecognizer to be activated and deactivated on demand such as when a users gaze moves over and away from an object.
GestureRecognizer | Create a GestureRecognizer. |
CancelGestures | Cancels any pending gesture events. Additionally this will call StopCapturingGestures. |
Dispose | Disposes the resources used by gesture recognizer. |
GetRecognizableGestures | Retrieve a mask of the currently enabled gestures. |
IsCapturingGestures | Used to query if the GestureRecognizer is currently receiving Gesture events. |
SetRecognizableGestures | Set the recognizable gestures to the ones specified in newMaskValues and return the old settings. |
StartCapturingGestures | Call to begin receiving gesture events on this recognizer. No events will be received until this method is called. |
StopCapturingGestures | Call to stop receiving gesture events on this recognizer. |
GestureError | Fires when Microsoft's gesture-recognition system encounters a warning or error. |
GestureErrorEvent | Fired when a warning or error is emitted by the GestureRecognizer. |
HoldCanceled | Fires when Microsoft's gesture-recognition system recognizers that a user has canceled a hold gesture. |
HoldCanceledEvent | Fired when the user does a cancel event either using their hands or in speech. |
HoldCompleted | Fires when Microsoft's gesture-recognition system recognizers that a user has completed a hold gesture. |
HoldCompletedEvent | Fired when users complete a hold gesture. |
HoldStarted | Fires when Microsoft's gesture-recognition system recognizes that a user has started a hold gesture. |
HoldStartedEvent | Fired when users start a hold gesture. |
ManipulationCanceled | Fires when Microsoft's gesture-recognition system recognizes that a user has canceled a manipulation gesture. |
ManipulationCanceledEvent | Fires when a Manipulation gesture is canceled. |
ManipulationCompleted | Fires when Microsoft's gesture-recognition system recognizes that a user has completed a manipulation gesture. |
ManipulationCompletedEvent | Fires when a Manipulation gesture is completed. |
ManipulationStarted | Fires when Microsoft's gesture-recognition system recognizes that a user has started a manipulation gesture. |
ManipulationStartedEvent | Fires when an interaction becomes a Manipulation gesture. |
ManipulationUpdated | Fires when Microsoft's gesture-recognition system recognizes that a user has updated a manipulation gesture. |
ManipulationUpdatedEvent | Fires when a Manipulation gesture is updated due to hand movement. |
NavigationCanceled | Fires when Microsoft's gesture-recognition system recognizes that a user has canceled a navigation gesture. |
NavigationCanceledEvent | Fires when a Navigation gesture is canceled. |
NavigationCompleted | Fires when Microsoft's gesture-recognition system recognizes that a navigation gesture completes. |
NavigationCompletedEvent | Fires when a Navigation gesture is completed. |
NavigationStarted | Fires when Microsoft's gesture-recognition system recognizes that a user has started a navigation gesture. |
NavigationStartedEvent | Fires when an interaction becomes a Navigation gesture. |
NavigationUpdated | Fires when Microsoft's gesture-recognition system recognizes that navigation gesture has updated. |
NavigationUpdatedEvent | Fires when a Navigation gesture is updated due to hand or controller movement. |
RecognitionEnded | Fires when recognition of gestures is done, either due to completion of a gesture or cancellation. |
RecognitionEndedEvent | Fires when recognition of gestures is done, either due to completion of a gesture or cancellation. |
RecognitionStarted | Fires when recognition of gestures begins. |
RecognitionStartedEvent | Fires when recognition of gestures begins. |
Tapped | Fires when Microsoft's gesture-recognition system recognizes that a user has done a tap gesture and after the system voice command "Select" has been processed. For controllers, this event fires when the primary button is released after it was pressed. |
TappedEvent | Occurs when a Tap gesture is recognized. |
GestureErrorDelegate | Callback indicating an error or warning occurred. |
HoldCanceledEventDelegate | Callback indicating a cancel event. |
HoldCompletedEventDelegate | Callback indicating a hold completed event. |
HoldStartedEventDelegate | Callback indicating a hold started event. |
ManipulationCanceledEventDelegate | Callback indicating a cancel event. |
ManipulationCompletedEventDelegate | Callback indicating a completed event. |
ManipulationStartedEventDelegate | Callback indicating a started event. |
ManipulationUpdatedEventDelegate | Callback indicating a updated event. |
NavigationCanceledEventDelegate | Callback indicating a cancel event. |
NavigationCompletedEventDelegate | Callback indicating a completed event. |
NavigationStartedEventDelegate | Callback indicating a started event. |
NavigationUpdatedEventDelegate | Callback indicating a update event. |
RecognitionEndedEventDelegate | Callback indicating the gesture event has completed. |
RecognitionStartedEventDelegate | Callback indicating the gesture event has started. |
TappedEventDelegate | Callback indicating a tap event. |