Posted April 03, 2024 by apteryxrowi
I fixed the mouse going off of the window for the in-browser game by adding a single line of code:
Cursor.lockState = CursorLockMode.Locked;
You kind of have to click in and click out and click back in the window though...
It was this easy the whole time yet I over complicated it with trying to warp the mouse and stuff ðŸ˜ðŸ’€
Also I allowed users to change mouse sensitivity which is cool :))