x


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...

more ▼

asked May 19 '10 at 02:11 PM

TheMorten gravatar image

TheMorten
128 8 8 15

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.

May 19 '10 at 02:26 PM ThumbStorm

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.

May 19 '10 at 08:01 PM TheMorten
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Unfortunately, this isn't currently possible without platform-specific C++ DLLs. There is a request for this ability on Uservoice.

more ▼

answered Jul 30 '10 at 06:49 PM

Daniel Brauer gravatar image

Daniel Brauer
1.4k 12 19 38

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3681
x983
x885
x198
x125

asked: May 19 '10 at 02:11 PM

Seen: 2207 times

Last Updated: May 19 '10 at 02:11 PM