Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to locking the cursor on the game in html?

A topic by iNji555 created Dec 30, 2020 Views: 428 Replies: 1
Viewing posts 1 to 2

Hello.

Loading the first game. Everything is fine, but the cursor constantly flies out of the game and does not allow normal control.
So in two browsers (chrome, fox)
In other other people's games, the site works differently.

Fixed

https://docs.unity3d.com/ScriptReference/Cursor-lockState.html

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.