On HandMenuExamples scene the menu is shown just the first time a hand is visible either right or left. When the hand is lost, next time hand is visible events are not triggered (OnFirstHandDetected).
Steps to reproduce the behavior:
I made a video to reproduce the behavior : https://youtu.be/RHVzJyh0Jko
I expect that the menu is visible every time a PalmUp happens and that the OnFirstHandDetected will reset when a hand is not visible.
I am just running the example from MRTK2
I literally just found the fix for this and was going to report the bug!
Changing line 239 in LeapMotionDeviceManager.cs from:
CoreServices.InputSystem.RaiseSourceLost(trackedHands[handedness].InputSource);
to:
CoreServices.InputSystem.RaiseSourceLost(trackedHands[handedness].InputSource, trackedHands[handedness]);
fixed it for me. The controller was never getting removed when the source was lost.
@cpaganucci thanks ! I'll give it a try.
@CDiaz-MS FYI
Most helpful comment
I literally just found the fix for this and was going to report the bug!
Changing line 239 in LeapMotionDeviceManager.cs from:
CoreServices.InputSystem.RaiseSourceLost(trackedHands[handedness].InputSource);
to:
CoreServices.InputSystem.RaiseSourceLost(trackedHands[handedness].InputSource, trackedHands[handedness]);
fixed it for me. The controller was never getting removed when the source was lost.