MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

NearInteractionTouchable: No OnPointerDrag events

Open sostel opened this issue 6 years ago • 0 comments

Overview

Goal: Move a 3D target on a slate (e.g., a cube, a cursor). Eventually I'd like to fluently draw on a slate from near and far. For this, I would like to reuse the input logic that I have already implemented for my far interaction using pointer events (OnPointerDown, OnPointerUp, OnPointerDragged). When walking up and touching the holographic slates, the first two events (Down and Up) are correctly fired using NearInteractionTouchable. OnPointerDragged is never fired though :(

Expected behavior

OnPointerDragged is fired when still touching (no PointerUp event received) and my hand (aka the pointer) is moving.

Actual behavior

OnPointerDragged is not fired.

Steps to reproduce

  1. Create a cube

  2. Attach NearInteractionTouchable and set "EventsToReceive" to "Pointer" image

  3. Attach a script to process the pointer events: image

Unity editor version

Unity 2018.4.14f1

Mixed Reality Toolkit release version

2.2.0

sostel avatar Jan 06 '20 21:01 sostel