Hi ! I am working on a simple game which requires dynamic generation of meshes of shape representing pipes in 2d. After cracking the problem of creating dynamic meshes now I am not getting how to detect click on this newly created mesh. Any suggestion/insight/solution/tips is highly appreciated ! Thanks a lot !
Add a box Collider2D to your game object with trigger on and in a script, attached to your object, you can use OnMouseUp event to do your stuff.
I think BoxCollider will work also.