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

Global listener properties on Interactable do not respond to changes at runtime.

Open killerantz opened this issue 7 years ago • 3 comments

Describe the bug

The property IsGlobal will work if checked before Runtime to register it as a global listener on enable, but setting it to false after runtime does not remove it as a global listener.

The property Requires Focus to false during runtime does not set it as a global listener.

Describe the desired behavior

These public properties can be set to true or false at runtime to add or remove the Interactable as a global listener during runtime.

killerantz avatar Jun 04 '19 17:06 killerantz

When fixing this bug, update the Interactable tests from #5033 to not require MixedRealityToolkit.InputSystem.PushModalInputHandler(interactableObject); after setting Interactable.IsGlobal = true.

julenka avatar Jun 26 '19 03:06 julenka

I snuck this fix in with PR #4695 which was merged yesterday. We had to updated the code to register globally to the IMixedRealitySpeechInputhandler and the IMixedRealityInputHandler in order to merge with MRTK_development, so I added the runtime checks while making those updates.

killerantz avatar Jun 26 '19 16:06 killerantz

Thank you! Closing as fixed by #4695

julenka avatar Jun 26 '19 17:06 julenka