- Home /
Locking cursor without changing position
Hey, is it possible to call Screen.lockCursor = true;
without the mouse cursor being centred afterwards? Is there a work-around?
I need to lock the mouse cursor and let it re-appear in the same spot...
I don't believe it's possible in unity. You should post more information of what you're doing to try to find a work around.
I'm trying to do a camera control where the user right-clicks in the camera space, the cursor disappears and the user can rotate the camera around. When the user releases the mouse button, the cursor should re-appear in the same place as it initially disappeared.
Answer by Daniel-Brauer · Jul 30, 2010 at 06:49 PM
Unfortunately, this isn't currently possible without platform-specific C++ DLLs. There is a request for this ability on Uservoice.
Your answer
Follow this Question
Related Questions
Setting the mouse position to specific coordinates 5 Answers
Locking the mouse cursor without it centering after unlocking it? 0 Answers
Mouse cursor lock 0 Answers
Lock mouse position with a Rect, possible? 1 Answer
menu issue and mouse click 0 Answers