Hi, I am using the 2D GUI to display buttons along the bottom of the screen during an immersive-ar session. Things work as expected until I try to push a button while my device is moving, in which case the pointer events are often sent to the wrong GUI button!
It behaves as if the screen coordinates of the button press are being mapped to a real-world point and then back to a screen coordinate before being seen by the GUI. In the meantime, the real-world point has moved relative to the screen, often ‘behind’ another button.
Here’s a playground that demonstrates the problem:
Try to click on button 3 while panning left and right. You will often end up selecting buttons 1, 2, 4, or 5 depending on the speed and direction of the pan.
Any suggestions on how to fix this?
Thanks!