check if the cursor is in certain rect

hi, i’d like to check if the cursor is in a certain rect and i think i heard about something like that but i’m not sure what was it, any help?,thnx :slight_smile:

Google is your friend

http://unity3d.com/support/documentation/ScriptReference/Rect.Contains.html