Click or drag to resize

FingersScriptGestureTouchFromVirtualTouch Method

Create a gesture touch object from a virtual touch object and updates the previous position internally

Namespace:  DigitalRubyShared
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public GestureTouch GestureTouchFromVirtualTouch(
	int touchId,
	Vector2 touchPosition,
	TouchPhase touchPhase,
	float touchPressure = 1f
)

Parameters

touchId
Type: SystemInt32
Virtual touch/finger id
touchPosition
Type: Vector2
Virtual touch position
touchPhase
Type: TouchPhase
Virtual touch phase
touchPressure (Optional)
Type: SystemSingle
Virtual touch pressure

Return Value

Type: GestureTouch
GestureTouch
See Also