Legacy Documentation: Version 5.5
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.