Version: 2020.1
언어: 한국어
public delegatevoid TappedEventDelegate (XR.WSA.Input.InteractionSourceKind source, int tapCount, Ray headRay);

파라미터

source Indicates which input medium triggered this event.
tapCount The count of taps (1 for single tap, 2 for double tap).
headRay Ray (with normalized direction) from user at the time this event interaction began.

설명

Callback indicating a tap event.

Users should register with TappedEvent. If only one of GestureSettings.Tap or GestureSettings.DoubleTap is set, then tapCount is reported as 1 or 2 respectively. If both GestureSettings.Tap and GestureSettings.DoubleTap are set, then two tapCounts are reported successively. For example, if you enable both taps on the same GestureRecognizer and tap twice, then two events are generated, the first with tapCount = 1 and the second with tapCount = 2.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961