x


Before updating to Windows 10 you may need to return your Pro license. More information here

How do i get the cursor to stay in the center of screen for fps!?

Im maiking and fps in unity and i need a small script that keeps the mouse/cursor restrained to the center of the screen

more ▼

asked Sep 08, 2010 at 08:59 PM

avatar image

grey walker
11 4 4 5

Are you just trying to get the crosshair to stay in the middle of the screen so you constantly fire in the middle of the screen?

If that's the case you should check out the FPS tutorial on how to easily do so.

I think you might run into some issues with trying to take functionality from the mouse by restricting it to not be able to move.

Sep 08, 2010 at 09:03 PM swhite
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
more ▼

answered Sep 08, 2010 at 10:09 PM

avatar image

spinaljack
10.2k 28 74 133

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1779
x1648
x139

asked: Sep 08, 2010 at 08:59 PM

Seen: 8647 times

Last Updated: Sep 08, 2010 at 08:59 PM