Forum rules - please read before posting.

First Person Lock Cursor

Although this may just be common sense, I assume this would probably at least help someone out there in the zeitgeist.

In PlayerInput.cs on lines 236 - 242

{
canMoveMouse = false;
Screen.lockCursor = true;
}
else
{
canMoveMouse = true;
Screen.lockCursor = false;
}

And on line 76-78

{
canMoveMouse = false;
Screen.lockCursor = true;
}


I find that Screen.lockCursor is alot more friendly for when testing in the editor, playing via unity webplayer, and for multi-monitor support.

Comments

  • Yeah but when you acces the menu, your cursor got locked in the center of the screen, too :c
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.