How to make the UI respond to mouse events and also penetrate the UI?

https://playground.babylonjs.com/#TMYC3W

You can mark the button ‘isPointerBlocker’ to false. But they you won’t get a hit on the button, as the event will flow through it. The event picking system will choose the single element that is blocking the pick and will use it to init the picking info.

The other pointer events should work without a problem. for example pointer down: The UI through | Babylon.js Playground (babylonjs.com)

It works once.But it’s kind of weird, the first time you click, then you can’t click.

yes, you are right. seems like an issue with pointer handling in the UI, as it resets when the mouse pointer exits the canvas and goes back in. @msDestiny14 , want to take a look at that?