Class AppUIInput
Additional input management for AppUI.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
Syntax
public static class AppUIInput
Properties
pinchGesture
The current pinch gesture.
Declaration
public static PinchGesture pinchGesture { get; }
Property Value
Type | Description |
---|---|
PinchGesture |
Remarks
To know if a pinch gesture has been processed this frame, check pinchGestureChangedThisFrame.
pinchGestureChangedThisFrame
Whether a pinch gesture has been processed this frame.
Declaration
public static bool pinchGestureChangedThisFrame { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
This will be set to true for any phase of the pinch gesture. To know the current pinch gesture, check pinchGesture.
Methods
RegisterGestureRecognizer<TRecognizerType>()
Registers a gesture recognizer to be used by AppUI.
Declaration
public static void RegisterGestureRecognizer<TRecognizerType>() where TRecognizerType : IGestureRecognizer, new()
Type Parameters
Name | Description |
---|---|
TRecognizerType | The type of the gesture recognizer to register. |
UnregisterGestureRecognizer<TRecognizerType>()
Unregisters a gesture recognizer from AppUI.
Declaration
public static void UnregisterGestureRecognizer<TRecognizerType>() where TRecognizerType : IGestureRecognizer
Type Parameters
Name | Description |
---|---|
TRecognizerType | The type of the gesture recognizer to unregister. |