Almost done but WebGL cursorlock is driving me crazy... Help!
The game is fully playable, has music and sound, only some graphics / animations / polish missing, which is pretty nice.
BUT there is one huge problem at the moment: I want to confine the cursor to the WebGL window and can't get it to work. Using Unity, and I already tried checking in Update for mouse down and then called Cursor.lockState = CursorLockMode.Confined;. I also tried setting up an invisible button that covers the whole screen and calling the code from its click event. Nothing has helped and build times are too damn long on my laptop to really continue trying...
Does anyone know how to do this properly?