Hi all,
My game is running in Full Screen by default, and my “Mac Fullscreen Mode” in Player Settings is set to “Fullscreen Window with Menu Bar and Dock.” These are the settings I want to use, as they’re the most standard and user-friendly.
I’m hiding the system cursor like so:
Cursor.visible = false;
However, the system cursor will often come back, either at random, or when moving the the cursor up into the menu bar or down into the dock. I would expect it to return when going to one of these sections, but it never disappears again; Cursor.visible is still set to false, despite the cursor clearly being visible.
The only workaround I’ve found is to create an empty texture and set it as the “Default Cursor” in Player Settings. Thus, the system cursor is being replaced by the empty texture, and will not be drawn while the game is active. Unfortunately, the cursor will not even be drawn when you move it up to the menu bar or down to the dock. Apple wasn’t a fan of this, so at their request I left “Default Cursor” set to None, and right now Mac App Store players have to deal with the cursor randomly coming back. (Of course, Apple doesn’t like that the cursor randomly appears, either. It’s lose-lose.)
This is an extremely common issue that I’ve noticed in most (all?) major Unity games on Mac (Kentucky Route Zero comes to mind). Has anyone found a workaround? Is this a bug?
Thanks!
- David