📜  unity hide mouse 第一人称 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:00.596000             🧑  作者: Mango

代码示例1
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
  
    }