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

Far interaction trigger events of previous selected UGUI element

Open jiaming233 opened this issue 3 years ago • 0 comments

Description

When clicking UGUI button using far pointer, the button previously clicked would trigger onclick event again.

Steps to reproduce

This can reproduce with Mixed Reality Toolkit Examples/Demos/HandTracking/HandInteractionExamples There are 3 buttons in UGUI slate, I registe onclick event for the first button so that it will update its text to show the count of click on itself.

Near interaction works properly: (Expected behavior) 1.Click the first button twice, text turns to 1 and then 2 2.Click the second button, text remains 2 3.Click inputfiled, keyboard shows up 4.Close keyboard 5.Click button, keyboard wont show

https://user-images.githubusercontent.com/26813390/183860414-e7e160fe-f994-42e2-863f-787f6449ffab.mp4

Far interaction: (Actual behavior) 1.Click the first button, text turns to 1 2.Click the second button, text turns to 2 3.Click inputfiled, keyboard shows up 4.Close keyboard 5.Click button, keyboard shows up again

https://user-images.githubusercontent.com/26813390/183859355-a75b99f6-96a8-4c6b-a831-f1e4dc432298.mp4

Unity editor version

Unity 2020.3.29f1

Mixed Reality Toolkit release version

Mixed Reality Toolkit v2.8.2 OpenXR Plugin 1.3.1

jiaming233 avatar Aug 10 '22 08:08 jiaming233