Class TouchExtensions
Extension methods for the Touch classes.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
Syntax
public static class TouchExtensions
Methods
ToAppUITouch(TouchControl)
Converts a UnityEngine.InputSystem.Controls.TouchControl to an AppUITouch.
Declaration
public static AppUITouch ToAppUITouch(this TouchControl touch)
Parameters
Type | Name | Description |
---|---|---|
TouchControl | touch | The UnityEngine.InputSystem.Controls.TouchControl to convert. |
Returns
Type | Description |
---|---|
AppUITouch | The converted AppUITouch. |
ToAppUITouch(Touch)
Converts a UnityEngine.InputSystem.Touch to an AppUITouch.
Declaration
public static AppUITouch ToAppUITouch(this Touch touch)
Parameters
Type | Name | Description |
---|---|---|
Touch | touch | The UnityEngine.InputSystem.Touch to convert. |
Returns
Type | Description |
---|---|
AppUITouch | The converted AppUITouch. |
ToAppUITouch(Touch)
Converts a UnityEngine.Touch to an AppUITouch.
Declaration
public static AppUITouch ToAppUITouch(this Touch touch)
Parameters
Type | Name | Description |
---|---|---|
Touch | touch | The UnityEngine.Touch to convert. |
Returns
Type | Description |
---|---|
AppUITouch | The converted AppUITouch. |
ToUnityEngineTouchPhase(TouchPhase)
Converts a UnityEngine.InputSystem.TouchPhase to a UnityEngine.TouchPhase.
Declaration
public static TouchPhase ToUnityEngineTouchPhase(this TouchPhase phase)
Parameters
Type | Name | Description |
---|---|---|
TouchPhase | phase | The UnityEngine.InputSystem.TouchPhase to convert. |
Returns
Type | Description |
---|---|
TouchPhase | The converted UnityEngine.TouchPhase. |