Answers for "unity hide mouse first person"

C#
0

unity hide mouse first person

void Start()
    {//Makes it invisable
        Cursor.visible = false;
  //Locks the mouse in place
        Cursor.lockState = CursorLockMode.Locked;
  // In unity press esc to unlock the mouse and unhide it
  
    }
Posted by: Guest on April-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language