docs.unity3d.com
    目次を表示する/隠す

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

    Reset()

    Declaration
    public void Reset()
    Implements
    IInputInteraction.Reset()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)