Search Unity

WebGL lock cursor

Discussion in 'Web' started by Nimonymous, Dec 10, 2018.

  1. Nimonymous

    Nimonymous

    Joined:
    Jul 15, 2016
    Posts:
    9
    Hi! I know that to lock cursor on WEBGL i have to call the appropriate method on MouseDown/PointerDown events. But what if i can't do it like that. Is there any other way to do that? I need to lock cursor when user clicks RMB, so the events mentioned above don't work for that. Thank you!