- Home /
How do i lock my cursor and place it in the middle????
I am currently working on a game and how do i lock my cursor and how to lock and place the cursor in the middle of the scene view?
Answer by Ray-Pendergraph · Mar 26, 2011 at 12:16 AM
You could use Screen.lockCursor = true. We do this frequently in first person mode however there are some differences between editor mode and built mode. In editor mode lockCursor tends not to work great so we have to draw a small cursor artificially in development because the center gets out of sync and aiming clicks is nearly impossible otherwise. Locking works great in production... it hides the cursor and puts it in the center. You may want to consider a reticle in this case.
Answer by poncho · Mar 25, 2011 at 09:03 PM
you dont need to lock it, just dont show it, this way you only need a GUI on the middle
Dude i need to lock i know how to hide it my project is very weird but i need to lock it how do u do it?
Your answer
Follow this Question
Related Questions
add lockcursor to pause menu script?? 2 Answers
where should i put this script 2 Answers
Locking the cursor but keeping it visible 0 Answers
Cursor unlocking on player 1 Answer
Cursor Lock 2 Answers