Minor annoyance: cursor in editor

I have always used: Screen.showCursor = false; to hide the cursor and it has always hid the cursor when testing in the editor as well as in the executables. But now all of a sudden, maybe after 4.0 the cursor never hides when testing in the editor until I click on the screen. It’s like when testing the game it starts with the window not on top by default. It’s annoying.

I believe Screen.lockCursor is what you need to use instead.

I need the cursor in game, I just don’t want to see the system cursor. I think the problem is just the editor being finicky.

Hi,

I had this, or something similar before too.

Spent a lot of time wasted on it thinking it was in my scripts and trying to track it down.

I found it was related to the window focus in the editor, at least for me. It wasn’t a problem in a build though.

I haven’t had the issue in a while…