Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

CursorLockMode.Confined issues in webgl

Discussion in 'WebGL' 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 :)