Hi, I’ve seen simular questions posted before but with insuficient answer’s.
So this is for a First person adventure style game, i want to lock the cursor at the center of the Screen (place mouse pos and thenScreen.lockCursor). Mouse position is however read only so i can’t seem to figure out how to do this properly.
The reason for positioning the mouse and not just locking it is to use functions from MonoBehavior.OnMouse… for colliders while at the same time having the cursor constantly at the center of the screen.
So is positioning of the mouse from scripts possible and if not alternative solutions for center cursor with interaction for colliders would be appreciated.