Quantcast
Channel: Questions in topic: "unitywebplayer"
Viewing all articles
Browse latest Browse all 452

How to replicate CursorLockMode.Confined in browser WebGL?

$
0
0
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

Viewing all articles
Browse latest Browse all 452

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>