I have an AR scene build using WebXR. I want to change my model’s color on a button click. However, when I click the button, instead of running button.onPointerDownObservable(), the scene.onPointerDown() is running which creates a copy of my model on the detected plane. So, how should I differentiate between pointer down of button and scene? Or how to identify inside scene.onPointerDown(), if the pointer down was on a button? @RaananW
There should be no difference between the two functions. You need to handle pointer events in your app as you see fit.
Without a playground, it’s hard to say what the issue is