Class TapInteraction
Performs the action if the control is pressed held for at least the set duration (which defaults to defaultTapTime) and then released.
Inheritance
System.Object
TapInteraction
Namespace: UnityEngine.InputSystem.Interactions
Syntax
public class TapInteraction : IInputInteraction
Fields
duration
The time in seconds within which the control needs to be pressed and released to perform the interaction.
Declaration
public float duration
Field Value
Type | Description |
---|---|
System.Single |
Remarks
If this value is equal to or smaller than zero, the input system will use (defaultTapTime) instead.
pressPoint
The press point required to perform the interaction.
Declaration
public float pressPoint
Field Value
Type | Description |
---|---|
System.Single |
Remarks
For analog controls (such as trigger axes on a gamepad), the control needs to be engaged by at least this value to perform the interaction. If this value is equal to or smaller than zero, the input system will use (defaultButtonPressPoint) instead.
Methods
Process(ref InputInteractionContext)
Declaration
public void Process(ref InputInteractionContext context)
Parameters
Type | Name | Description |
---|---|---|
InputInteractionContext | context |
Implements
Reset()
Declaration
public void Reset()