How to hide cursor ingame? Please help

Hi, I’m trying to play Global Strike. When I put the game into full-screen, my mouse is still visible. I can only turn til the cursor hits the edge of my screen meaning I can’t turn around or anything! I’ve never had this problem, hope there’s an easy fix? Thanks for reading.

Cursor.visible = false;
Cursor.lockstate = CursorLockMode.Confined;

Everything about “cursor” can be found here.

BUT be careful how you use this. While in the editor, you can always press Esc, to get your cursor back, but in your build, you may not have that option, so you would have to code a way to basically set the visibility back to true.

@Cha0sCl0ud

cursor.lockState = CursorLockMode.Locked;
is what you are looking for. This line hides the cursor and locks it in the middle of the scree during play mode.