Mesh Button 3D only pick on opaque

Hello,

I’m creating some MeshButton3Ds with planes having a circular alpha diffuse texture, meaning the corners of the planes are transparent. They are however still pickable in the transparent parts. I didn’t find any similar options for them like for 2D GUI Buttons: .detectPointerOnOpaqueOnly.

Is there a way to do this?
Or should I try to get 2D Buttons in the world space? But how do you do that?

You can take a look here: https://playground.babylonjs.com/#59FFHD#101 (go to machine 1 by clicking the 2D GUI or double clicking the boombox)

Hehe whoops!
I just changed the used mesh from a plane to a disc and now it works as intended. :woozy_face: :innocent:

if anyone interested: https://playground.babylonjs.com/#59FFHD#102

2 Likes