- Home /
Hiding a Cursor?
I am trying to make a script that I can hide the cursor but not lock its position. I have the script used in the fps tutorial that will hide it and lock it but I am not sure how I can modify it so that it only hides the cursor and doesn't lock its position. Could someone assist me on a way to modify that script? (or if it is something completely different?) Thank you.
Answer by jack 1 · Jun 28, 2010 at 06:01 AM
http://www.unifycommunity.com/wiki/index.php?title=PointerManager
I'm sure you could work off of this, simply make it so that the mouse is always hidden, set it to disapeer after a negative value of time or something.
Answer by bobin115 · Jul 16, 2014 at 06:49 PM
just put this script in an empty game object and save it as .js
void Start ()
{
Screen.showCursor = false;
}
Your answer
Follow this Question
Related Questions
Hide and lock the mouse cursor (beginner) 0 Answers
Issues with mouse input when locking the cursor 0 Answers
Cursor " Hide" is not Immediate, what's wrong? 0 Answers
Cursor won't stay locked in update!! 0 Answers
Hide mouse cursor on startup 2 Answers