Hi everyone !
Been searching over a lot of different website and questions about this but I couldn’t find the answer.
Cursor.lockState = CursorLockMode.Locked; is working in the Unity Editor, but it’s not working in the WEBGL.
I’ve put it in the update, after a MouseDown. Can’t figure it out.
The cursor is lock, not in the center of the screen, but where I clicked when I entered the WEBGL online.
Does anyone has the answer to center and lock the mouse in WEBGL ?
Thank you in advance.