I am trying to make it so that on the start of my game, the cursor will show and it will unlock it. I have made an empty game object and put this script on it.
void Start () {
Screen.lockCursor = false;
Cursor.visible = true;
}
When I am in the editor, there is nothing to lock the cursor so I don’t know if it is working, but when I build the game, the cursor does not show.
How can I make my finished game show the cursor and let me use it?
I am using C#.