- Home /
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 :-)
Comment
Best Answer
Answer by DaveA · Nov 03, 2011 at 05:27 PM
Google is your friend
http://unity3d.com/support/documentation/ScriptReference/Rect.Contains.html
Thank u so much, and i'm sorry i just didn't know what should i write in the searth field :)
You should try browsing the Script Reference- there's all sorts of useful stuff in there!
Your answer
![](https://koobas.hobune.stream/wayback/20220613031656im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cursor issues: strange white square under cursor 1 Answer
How to lock cursor in WebGL 1 Answer
How to constrain cursor to surface? 2 Answers
Mouse Cursor Problem 2 Answers
Cursor appears dark in game 0 Answers