I’m writing some code to hide the mouse cursor when the player is using a gamepad. Something unexpected is that if I set Cursor.visible = false, that doesn’t seem to keep the cursor from interacting with the UI. While the cursor is hidden, if the ui scrolls past its location, I’ll see pointer events (hover) firing on the UI object that passes through the hidden cursor’s position.
Is there something I can do to disable mouse pointer behavior entirely when the cursor is hidden? I’ve consider forcing the cursor to the corner of the screen, but I’d prefer not to, as that feels a little fragile.