I’m working on a small Unity 2020.1/C# app that lets you walk and look around a room but also click on specific objects to get more information about them. For the “looking around” part I lock the cursor with:
Cursor.lockState = CursorLockMode.Locked;
This also automatically hides the cursor and Cursor.visible = true
doesn’t affect it (documentation).
I’m still able to click on objects like that but it’s not that easy, especially with small objects, when you can’t see the cursor.
How do I set it to be visible, while still being locked in the middle of the screen?