How To Turn Off Built In Cursor Visible When Pressing Escape?

I am not using unity’s FPS Controller with the Mouselook script that controls the cursor by pressing escape, mouse 0 etc. However when escape is pressed the cursor is still made visible and left clicking the mouse button turns it off sometimes and sometimes it doesn’t(Seems very buggy).

Even when I build the game this functionality is still enabled.

I have written my own cursor script so that when my player opens his inventory the mouse cursor should be visible and then disappear when the inventory is closed. The problem is I think Unity’s built in cursor functionality is affecting the script i have written for my cursor.

Is there a way to turn it off??

Hi @coxy1979 ,

You can try by setting the Cursor.visible to false.

You can read more info about it here:

Good luck with it!