Pass click through a mesh (bubble click event)

Hi there.
Just wondering what syntax is to bubble a click event past a mesh… so that it doesn’t block a click to a clickable thing underneath it.

(figured it would be easy to find, but coming up blank)

thanks!

Hi @bigrig

Maybe isPickable is what you need.
In this PG, I disabled picking line 17. Comment the line to get the picking back.

https://www.babylonjs-playground.com/#NU4F6Y#232

4 Likes

Indeed, that is the one. Thank you!
(funny name for it- wouldn’t have thought to search for that term).

2 Likes

Thanks. Was searching for this soltn for an hour

1 Like