Class MultiTapInteraction | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    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
    IInputInteraction.Process(ref InputInteractionContext)

    Reset()

    Declaration
    public void Reset()
    Implements
    IInputInteraction.Reset()
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX