OnMouseDown() on game object’s children

I’ll try to keep it concise. Essentially, I’ve got a script on a parent object called “Inputs”. This parent object has a bunch of individual objects in it called input 1, 2, etc. My problem at this point is that I can’t figure out how to say “function OnMouseDown(child object called input1) do something”. I’ve only been able to get OnMouseDown to work with the game object the script is on. Hopefully this makes enough sense to be answerable.

I really just need to know how to be more specific with the OnMouseDown function so that I can say “click on this particular thing (with a collider)” and not just “click on the game object.” I’m probably just looking this up the wrong way because it seems really simple and I haven’t been able to find a solution anywhere. Thanks in advance for the help!

Last time I tested this and contrary to the documentation, OnMouse… didn’t not get callbacks from the Colliders in the Children. Similar to you, I was only getting callbacks from the object to which the script was attached.

So it appears that at some point this functionality got broken…