- Home /
Question by
swecreep23 · Jan 06, 2019 at 03:54 PM ·
unity 2dmousecursormousepositionrestrictions
Restricting the mouse cursor from entering a certain area
Alright, so I have a circle in the middle of the screen and I don't want the mouse cursor to be able to enter that circle. How do I do that?
I've seen a lot of explanations on how you restrict the cursor to the inside of an area. But I haven't found one that explains how you restrict the cursor the outside of a circle. It's okay if the "restriction area" is a box, but I would prefer if it's a circle like the object.
Comment
Your answer
Follow this Question
Related Questions
how to make force from mousepointer constant ? 0 Answers
How do I send my cursor to a sprite 2D 1 Answer
Inconsistent Mouse Related Behavior in 2D 1 Answer
How To Check Which Side of The Screen Your Cursor Is On? 1 Answer
Is it possible to not allow the in-game cursor through certain sprites? 1 Answer