Whenever I hide the cursor, it remains in position and new UI elements respond to it. For example, if the cursor is made hidden, if I open a new menu on the screen, and a button happens to fall below the cursors previous position, it immediately becomes highlighted.
I first noticed this issue on Steam Deck because it auto-hides the cursor when you start using the controller. I decided this was a good thing to do in Unity in general for PC play as well. The issue is, I cannot seem to figure out a way to make it stop highlighting things after it is hidden.
isVisible = false obviously doesn’t work for that. Locking it locks it to the center of the screen which is frequently where UI elements for pop up menus exist.
I thought maybe I could move the cursor to the side of the screen and then hide it, but there doesn’t seem to be a cross-platform way to do that that I can find.
I am using the Input Action system and I tried setting “Point” to “None” on the EventSystem’s InputSystemUIInputModule, but that had no effect. I feel like maybe I am on the right track with this approach, but I must be misunderstanding something.
Any ideas? Thanks.