- Home /
How could I restrict the mouse movements in a specific area ?
Hello,
I would like to restrict the mouse movements to a specific area, but I don't have much idea on how to do that ! Also, it should be possible to click on buttons, interact with U.I. etc., still on this specific area.
Could I have any help, please ? :)
Thanks a lot
like this (circle): https://answers.unity.com/questions/1439356/limit-mouse-movement-around-player.html or this(square): https://answers.unity.com/questions/51531/restrict-the-mouse-posisition.html BUT these solutions replace the hardware cursor, which you might not want?!
Answer by drewbiemon · Sep 18, 2019 at 06:03 PM
@MrYeti What are you trying to achieve with this? What kind of game are you trying to create? Could I possibly get a screen shot or something of that nature to analyze and help ya more?