How to avoid picking of hidden meshes

Hi there,
is it possible to avoid picking of a mesh when it is hidden by a non-pickable mesh?
This is my PG: https://playground.babylonjs.com/#A6TFXB#47
The upper cubes are not pickable, but if you click on them you are able to pick the lower hidden cubes.
I’ve tryied setting isBlocker properties but seems not to work.
Thank’s

I think the easiest way is to keep the upper cubes pickable and detect that it is a “non-pickable” cube that has been selected, and in this case do nothing (don’t select it).

1 Like

Yes, this was my first thought but I was wondering if there was some other solution. I’ll do it in this way. Thank you :+1: