How to block mesh selection when hidden by another one

Hi there,
i my scene i’ve this situation: many meshes overlap eachother and i want to select only visible meshes.
With pick event all work as expected, but with mouseOver event, the event is triggered also if the mesh is hidden by another one.
This is my PG: Babylon.js Playground
As you can see the lower box is higlighted also if i move the mouse pointer over the upper box.
I’ve tried also to using box2.isBlocker=true but doesn’t work.

Any idea?
Thank’s :wink:

EDIT:
I can get what i need only if i register some event also on the other box: https://playground.babylonjs.com/#VLDWV0#1
Is this the right solution?

I am not sure that I’ve got completely what you are trying to achieve.
But here is small example - https://playground.babylonjs.com/#VLDWV0#2
Maybe you may use it for your purposes, instead of actionManager.

scene.onPointerMove = function(evt, pickResult) {
                if(pickResult.hit) {
             console.log(pickResult.pickedMesh.name);

// DO WHAT YOU NEED WITH THIS MESH :slight_smile:
}
}

Yes, maybe a can get the same result using scene events instead registering it on specific meshes.
I’ll try, thanks :wink: