Alpha checking?

Hi, everybody!
I am begginner of unity3d programmer. My first project - it’s 2d simple game. Some pictures have area with 100% transparency. How i can do so as 100% transparency area don’t responsible of mouse clicks?

Use Physics.Raycast to do the mouse picking. You will get useful information through the RaycastHit result. Look into RaycastHit.textureCoord which basically contains all the code you need to pick a color. Then you can just decide from its alpha value if the object should process the click event or not.

You will need colliders on your objects or this won’t work, since raycasting only process colliders.

Thank you!