Raycast NOT on Alpha

Hey i want to create a Plane GUI … i put Textures on the Planes but … the textures have alpha and if you hit the alpha area with the mous its activate the button but i want only on area with Alpha > 0

the invisible area should not work

how does it work ?

The activation is based on geometry, not on the alpha/texture. If you want to have more accurate picking, you’ll need to use meshes that more closely match your button geometry.