Interaction among GUI elements and meshes

In my scene, there are several meshes and GUI elements. Sometimes GUI elements like InputText overlap with meshes. When pointer is moved on top of the InputText and scene is picked, the mesh below the InputText is getting hit. Is there anyway to avoid this?

I’ve tried isPointerBlocker and isHitVisible properties on the InputText and tried to use the predicate of scene.pick() but that acts only on meshes.

You can set isPointerBlocker on the GUI element, and then check the advancedDynamicTexture._shouldBlockPointer variable to see if the cursor is over a pointer blocker.