Is there an equivalent for GameObjects of the GUIText(ure) HitTest script? I’m trying to activate something when a particular object is clicked without doing just a general ButtonDown command.
Thanks!
Is there an equivalent for GameObjects of the GUIText(ure) HitTest script? I’m trying to activate something when a particular object is clicked without doing just a general ButtonDown command.
Thanks!
What’s wrong with using OnMouseDown?
I want a script I have written to activate only when I click on a particular object, not when I click anywhere on the screen…
OnMouseDown is used for a particular object…Alternately, do the Raycast yourself (OnMouseDown/Up does one internally)