unity hide mouse

C#
Cursor.visible = false;
Source

Also in C#: