- Home /
Question by
bigmike777 · Aug 03, 2020 at 09:27 PM ·
c#fpsunityeditor
lock cursor code
I have this code to re lock cursor i need help it wont work
if(Input.GetButtonDown("Shift"))
{
LockCursor();
}
Comment
Answer by davidcox70 · Aug 03, 2020 at 09:32 PM
Try:
Input.GetKeyDown(KeyCode.LeftShift);
(or rightShift) Assuming you want to run LockCursor() when the user presses a shift keyboard button.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
how to make it so you have to press a button twice 1 Answer
Can't stop camera from rotating on Z Axis 1 Answer
Unity 2D -Reflecting a linerenderer 2 Answers