- Home /
This question was
closed May 08, 2013 at 05:49 PM by
Julien-Lynge for the following reason:
The question is answered, right answer was accepted
How to make it where when I press the letter P the cursor shows up?
Currently in my game then you press p it pauses the game but the cursor does not show up, so how can I make a script where when I press P it make my cursor show up?
Comment
It is disabled the same way with`Screen.showCursor = false;` but I want it so when you press P it will make the cursor show.
Best Answer
Answer by ahaykal · May 08, 2013 at 04:48 PM
As robertbu said:
if(Input.GetKeyDown("p"))
Screen.showCursor = true;
Closing the question - right answer provided with copy-paste code.