- Home /
Question by
Riva11 · Mar 13, 2014 at 10:43 PM ·
collideronmousedownzone
Call OnMouseDown of collider?
I made some zones which are shaped like dish. Those zones all have their own OnMouseDown method. sometimes zone gets full of balls on it so I cannot click on that zone.Can I make that clicking on any ball will initiate OnMouseDown of a zone has that ball, by using collision so that the ball say "oh i got clicked so now I see witch zone I am collided with and initiate its OnMouseDown". please help
Comment
Can balls stack on top of each other? If so, then the solution you outline will not work. If the balls don't need Raycasting, move them to the 'Ignore Raycast' layer to fix this problem.
thank you very much robertbu. yes Igonor Raycast layer was the perfect solution