⌘BABAKOV.NET Let's code!
100% [light] [ru]

Displaying and Hiding the Cursor in Unity

To hide the cursor

Cursor.lockState = CursorLockMode.Confined;
Cursor.visible = false;

To display the cursor

Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;

Comments (0)

No comments yet.

Leave a comment
Comment
Images (up to 5 MB)
Your comment will appear after moderation.