Quantcast
Channel: Recent Discussions — Mixed Reality Developer Forum
Viewing all articles
Browse latest Browse all 10543

Can't Detect Manipulation Completed/Canceled

$
0
0

I'm having an issue with IManipulationHandler that hope you guys can help me with.

I was trying to solve the problem of losing track when the user's not gazing exactly on the trigger collider while applying manipulation gestures.

So I created a boolean called isManipulating which will be set to true in OnManipulationStarted(), and will be set back to false in OnManipulationCompleted() / OnManipulationCanceled(). And in OnManipulationUpdated(), it keeps updating the ManipulationEventData and stores them into some global variables which will be used in Update() when isManipulating==true

Everything in OnManipulationStarted() and OnManipulationUpdated() works fine. However, nothing in OnManipulationCompleted() / OnManipulationCanceled() runs, either when the gesture is completed or hand is out of view. Not even a single Debug.Log() and no callback.

Any thoughts? Or if you have any other suggestions to solve the problem I was about to solve, I'd be really appreciated. Thanks!


Viewing all articles
Browse latest Browse all 10543

Trending Articles