Class MultiTapInteraction
Interaction that requires multiple taps (press and release within tapTime) spaced no more than tapDelay seconds apart.
Inheritance
System.Object
MultiTapInteraction
Namespace: UnityEngine.InputSystem.Interactions
Syntax
public class MultiTapInteraction : IInputInteraction<float>, IInputInteraction
Remarks
The interaction goes into Started on the first press and then will not trigger again until either the full tap sequence is performed (in which case the interaction triggers Performed) or the multi-tap is aborted by a timeout being hit (in which case the interaction will trigger Canceled).
Fields
pressPoint
Declaration
public float pressPoint
Field Value
Type | Description |
---|---|
System.Single |
tapCount
Declaration
public int tapCount
Field Value
Type | Description |
---|---|
System.Int32 |
tapDelay
Declaration
public float tapDelay
Field Value
Type | Description |
---|---|
System.Single |
tapTime
Declaration
public float tapTime
Field Value
Type | Description |
---|---|
System.Single |
Methods
Process(ref InputInteractionContext)
Declaration
public void Process(ref InputInteractionContext context)
Parameters
Type | Name | Description |
---|---|---|
InputInteractionContext | context |
Implements
Reset()
Declaration
public void Reset()