3D Survival FPS Game

Making the Mouse Cursor Invisible during game play

Scripting API:

Within Unity’s scripting API there is a function called “Cursor.Visiable” which makes the cursor arrow disappear when the game is running. Unfortunately because the mouse function when clicking stuff is still active it ruins the gameplay.

Scripting the Lock Cursor:

The scripting is actually quite simple, within the player script, during the start method, we are simple going to set the lock mode for the cursor to be “locked”, this centers the arrow and also makes it invisible.

--

--

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.