i add new plane to my ground with texture but i’m with diffucult do detect the click :
const plane = BABYLON.Mesh.CreatePlane(“text”, 50, scene);
const rectangle = new GUI.Rectangle();
const text = new GUI.TextBlock();
rectangle.addControl(text);
return plane;
this is my plane and i use this methode to detect the click :
case BABYLON.PointerEventTypes.POINTERDOWN:
if (pointerInfo.pickInfo.pickedMesh && pointerInfo.pickInfo.pickedMesh !== this.ground) {
console.log("clicked);
}