OnMouseDown alternative

Hello,

I am looking for some alternative to OnMouseDown function. The problem is that when I use OnMouseDown function, I have to click right in the middle of my object to make it work. So I am looking for some way to make it work even if I click on the edge of my object.

Could somebody please help with this?

Thanks

never mind. I figure it out. The problem was that my box collider was not big enough and OnMouseDown function was being executed only if click was inside of box collider…