Mixedrealitytoolkit-unity: Pressable button inconsistent firing

Created on 3 May 2019  路  4Comments  路  Source: microsoft/MixedRealityToolkit-Unity

Describe the bug

A default pressable button's onclick event fires inconsistently, and often more than once per press, unless the physical event router script's enum is set to EventOnClickCompletion

image

It seems that this mode also only triggers when the the button is released, but this makes it mismatch with audio cues, and makes it difficult to fire. The name is also unclear.

image

To reproduce

Copy a pressable button example, like one taken from the hand interaction scene.
Add an event OnClick, and it will fire more than once, and sometimes accidentally.

Expected behavior

Button onclick event fires once per touch event

Your Setup (please complete the following information)

  • Unity Version 2018.3.8f1
  • MRTK Version v2.0 latest dev branch

Target Platform (please complete the following information)

  • HoloLens 2
0 - Backlog 3 - Working Bug ISV Release Blocker UX Controls - Buttons Urgency-Now

All 4 comments

@thalbern are you taking over on buttons now? Is this something you could look at?

@thalbern with your latest fixes is this done now?

Seems like with the recent changes this is not happening anymore:
In the default setup the button will do the click on press and we only emit the pressed event once per button interaction. (there has to be a touch end to have this event trigger again).

The original issue here is fixed, however the confusing part (physical press event router event names) is still there - we have a ticket for removing the physical press event router and making the button easier to use which should tackle this issue. see https://github.com/microsoft/MixedRealityToolkit-Unity/issues/4258

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nuernber picture nuernber  路  3Comments

Alexees picture Alexees  路  3Comments

reillydonovan picture reillydonovan  路  3Comments

dustin2711 picture dustin2711  路  3Comments

provencher picture provencher  路  3Comments