Hi. I want to replicate the behaviour of setting the cursor lock state to Confined (mouse is visible, but can't leave the play window/screen) but in WebGL.
Cursor.lockState = CursorLockMode.Confined;
The docs say that this functionality only works in Windows and Linux. Does anyone have any ideas on how this could be replicated for a web browser using WebGL?
https://docs.unity3d.com/ScriptReference/CursorLockMode.Confined.html
↧