uh, so I looked at the doc and saw
img.detectPointerOnOpaqueOnly = true is possible on the image class. Any chance the CreateImageOnlyButton can also use this ? I tried
var button = BABYLON.GUI.Button.CreateImageOnlyButton("but", "textures/grass.png"); button.image.detectPointerOnOpaqueOnly = true;
but it didn’t work. Asking cos I have custom made image buttons that are non-square and want to avoid misclicks happening when user mouseover the transparent parts of the button, especially at the corners.