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

Interactable setting IsGlobal to true makes nothing else movable clickable in the scene

Open wiwei opened this issue 7 years ago • 6 comments

Ported to Github, reference 20963951

Find an interactable in HandInteractionAllExample scene Check IsGlobal so it is true

Run the scene, and try to move something with hand rays Expected: I can move things around with hand rays Actual: I can't moving anything around, the interactable is stealing all input

wiwei avatar May 15 '19 17:05 wiwei

b96260d7-9a8b-4ac0-a00b-83fe053922e1

wiwei avatar May 15 '19 17:05 wiwei

@killerantz can you comment a bit about the original intent of the Is Global property?

wiwei avatar May 15 '19 17:05 wiwei

The Is Global value was meant for things like a fitting guide (buttonless UI) or modal, or where we used to say, "air tap anywhere to continue." It's meant to be a button that gets all input, no matter if the button has focus or not. Normally this would be the only button that cares about input at a given time.

killerantz avatar May 15 '19 21:05 killerantz

@killerantz it sounds like you're suggesting that this is by design, is that correct?

julenka avatar May 16 '19 05:05 julenka

The eventData.Use() methods were added recently, so the IsGlobal didn't stop the events propagating before, but from a design stand point, there should be one global button at a time consuming events. One scenario could be the Menu button on the controller, I could setup a global Interactable to listen for the menu button and wire up a panel to activate with the OnClick Unity event. Previously I could have had multiple interactables listen for the menu button and do stuff, but that seems really messy and potentially buggy.

killerantz avatar May 16 '19 15:05 killerantz

Resolving as by design for now.

julenka avatar May 17 '19 15:05 julenka