- Home /
Question by
john-essy · Oct 17, 2011 at 12:17 PM ·
mousewebplayermouse position
Lock Cursor to Screen resolution
The Main Question is i am building a Web Player Game and have a custom mouse pointer and want to be able to keep it Infect depend on it. The Q i have is how would i set the mouse to be bound by the screens resolution 800x600 so the cursor can't go past the sides of the web player. Maybe only if the player presses escape cause it would be annoying if you can't get your cursor back.
I have tried Screen.lockCursor = true; but doesnt give me the effect i want.
Thanks in advance guys!!
Comment
Your answer
Follow this Question
Related Questions
Unity mouse input gradually becomes off 0 Answers
Mouse Location in world relative to the player 2 Answers
Unity Web Player does not respond to mouse clicks 1 Answer
transform.LookAt gives a twist 2 Answers