Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

CursorLockMode.Confined

Description

Confine cursor to the game window.

Note that confined cursor lock mode is only supported on the standalone player platform on Windows and Linux.

Did you find this page useful? Please give it a rating: