Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

CursorLockMode.Confined issues in webgl

Discussion in 'Web' started by w0ptrick, Apr 20, 2015.

  1. w0ptrick

    w0ptrick

    Joined:
    Sep 4, 2012
    Posts:
    5
    Hey All,

    CursorLockMode.Confined doesn't seem to work yet with the webgl port (tested in chrome and firefox). I was wondering if anyone has managed to get this to work or found a work around?

    Thanks,
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    CursorLockMode.Confined is not supported in WebGL, and won't be supported due to platform limitations (for that matter it does not work on OS X even in native, because there is no OS-level support for this kind of functionality).
     
  3. w0ptrick

    w0ptrick

    Joined:
    Sep 4, 2012
    Posts:
    5
    Ahh fair enough. Thanks for the quick reply :)