How to use Cursor AI in Unity

在 Mac 的 Unity 中如何使用 Cursor AI ?
以下記載如何在 Mac 的 Unity 中設定 Cursor AI

  1. 在 Unity 編輯器中,找到 Windows -> Package Manager

  2. 點擊 + 展開選單,並找到 Add package from git URL 並選擇,在輸入 https://github.com/boxqkrtm/com.unity.ide.cursor.git , 以安裝 Cursor Editor

  3. 接著到 https://www.cursor.com/ 註冊帳號並下載 Cusor Editor 安裝。

  4. 然後到 Preferences -> External Tools -> External Script Editor ,選擇安裝的 Cursor

  5. 至此,便可以在編寫程式碼的時候,使用 Cursor AI 了。

  • 按下 + L 可以開啟 AI 互動,在這邊你可以向AI闡述你的問題,讓它生成相關的程式碼

  • 按下 + K 在這邊你可以向AI闡述你的需求,讓它在選中的段落為你產生程式碼。

評論