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

InteractableStates - "Focus"-state not working properly with HL1

Open KarlUweMartin opened this issue 7 years ago • 5 comments

Describe the bug

I'm using the DefaultInteractableStates for my Interactable objects. Everything works fine in the editor. The elements change color and offset when being focused and change back when focus is lost. Now it's basicly working on the HoloLens 1. The only problem is, when the HL1 recognizes a "pinch"-gesture (when I hold up my hand ready to click), the "focus-lost"-event is not executed. My buttons only lose the highlight when I hover over them without holding up a hand.

To reproduce

Use the DefaultInteractableStates on a custom button with HoloLens1

Expected behavior

Toggle highlight on focus every time, no matter what device.

Your Setup (please complete the following information)

  • Unity Version 2018.3.12f1
  • MRTK Version v2.0

Target Platform (please complete the following information)

  • HoloLens 1

KarlUweMartin avatar May 08 '19 14:05 KarlUweMartin

@hdaUwe, just to check, is this when you've deployed to HL1, or using holographic remoting?

wiwei avatar May 15 '19 00:05 wiwei

@hdaUwe, just to check, is this when you've deployed to HL1, or using holographic remoting?

I deployed it on HL1.

Update: The issue seems to be resolved in the current branch. (I only replaced the FocusProvider. Interaction with the Unity UI did not work anyore, though)

KarlUweMartin avatar May 15 '19 11:05 KarlUweMartin

Same problem here. I've got multiple game object with children, which have to change color when gazing at them. In editor everything looks well, but in hololens 1, the focus state isn't triggered as expected. This behaviour occurs on holographic emulation as well as on the hololens itself.

simmue avatar May 21 '19 12:05 simmue

As @hdaUwe suggested, I checkout the current development branch and there the issue seems to be fixed.

simmue avatar May 21 '19 12:05 simmue

Confirming Interactable using default 'InteractableStates' works as expected on HL1 using mrtk_development. This includes focus state handling with a hand both inside and outside of the device FOV with the ready gesture.

Feel free to open a new issue if you're still having issues. Thanks!

radicalad avatar Jun 17 '19 22:06 radicalad