- Home /
 
 
               Question by 
               $$anonymous$$ · Aug 02, 2014 at 04:39 PM · 
                guibuttonguitext  
              
 
              Check if GUI is Pressed
I am seeing a lot of answers to questions which require Rectangles and prior knowledge of checking if GUIs are pressed. I am not quite following it.
In its simplest form, how do you check if a GUI Text is clicked with the mouse?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Eric5h5 · Aug 02, 2014 at 04:41 PM
If you're talking about a GUIText object (GameObject with GUIText component), then just use the OnMouseDown function. No colliders are necessary.
so simple! this is exactly what ive been trying to find! thanks!!
Your answer