My Unity Script
Wednesday, August 21, 2019
CURSOR lock and unlcok mouse in unity
- hide mouse on start game
Cursor.lockState = CursorLockMode.Locked;
Cursor.visible = false;
--show mouse and able to move
Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment