Class MultiTapInteraction | Package Manager UI website
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023