I think you know it at a fps
you’re mouse is in the way
im started with scripting and i wanna know how to make your mouse disappear.
Download the FPS assets and use the “Lock Cursor” script in the “Misc. Scripts” folder.
You’ll be able to pause using the “Escape” button and unpause by clicking the screen.
Just if you don’t want to bother downloading it yet, use the below commands;
Screen.lockCursor = true;
Screen.showCursor = false;
to what do i need to attach it?
It doesn’t matter, you can attach it to the main camera. You should use them under a function like Start() or Awake().
awake is better
-rp
Well, it is an old question, the way you do nowdays is Cursor.visible = false;
It does not seems to work in editor-mode (maybe because of my OS). It works with a built version though