Visual Studio for Mac Tools for UnityVisual Studio for Mac Tools for Unity

Unity 和 Visual Studio for Mac 的樣式化圖

Visual Studio for Mac Tools for Unity 是一種免費的 Visual Studio 延伸模組,可將 Visual Studio for Mac 轉換為使用 Unity 平台開發跨平台遊戲和應用程式的功能強大工具。Visual Studio for Mac Tools for Unity is a free Visual Studio extension that turns Visual Studio for Mac into a powerful tool for developing cross-platform games and apps with the Unity platform.

Unity 整合現成包含在 Visual Studio for Mac,且從 Unity 2018.1 開始,Visual Studio for Mac 是 Unity 專案的預設 C# IDE。Unity integration is included out of the box in Visual Studio for Mac, and starting from Unity 2018.1, Visual Studio for Mac is the default C# IDE for Unity projects.

總覽Overview

以下是 Visual Studio for Mac Tools for Unity 的一些主要功能:Here are some of the key features of Visual Studio for Mac Tools for Unity:

與 Visual Studio for Mac Community Edition 相容Compatible with Visual Studio for Mac Community Edition

Visual Studio for Mac 社群版本可供免費使用,並從 Unity 2018.1 開始與 Unity 安裝搭配。Visual Studio for Mac Community Edition is available for free, and bundled with Unity installs starting with Unity 2018.1. 請參閱 Visual Studio for Mac Tools for Unity 設定文件,以取得詳細資訊。See the Visual Studio for Mac Tools for Unity setup documentation for more information.

Unity 訊息的 IntelliSenseIntelliSense for Unity messages

IntelliSense 可快速且輕鬆地實作 Unity 訊息 (例如 OnCollisionEnter),包含其參數。IntelliSense makes it fast and easy to implement Unity messages like OnCollisionEnter, including their parameters.

高階偵錯Superior debugging

Visual Studio for Mac Tools for Unity 支援預期從 Visual Studio 取得的所有偵錯功能:Visual Studio for Mac Tools for Unity supports all the debugging features that you expect from Visual Studio:

  • 設定中斷點,包含條件式中斷點。Set breakpoints, including conditional breakpoints.
  • 在監看式視窗中評估複雜的運算式。Evaluate complex expressions in the Watch window.
  • 檢查及修改變數和引數的值。Inspect and modify the value of variables and arguments.
  • 向下切入至複雜的物件和資料結構。Drill down into complex objects and data structures.

功能強大的重構和內容動作Powerful refactoring and context actions

使用重新命名、重構和內容動作的快速功能表和鍵盤快速鍵,來撰寫更多實用程式碼。Write more usable code with quick menus and keyboard shortcuts for renaming, refactoring, and context actions.

瀏覽並新增檔案Browse and add new files

瀏覽 Unity 專案,並新增資料夾、指令碼或著色器,而這些都是在 Visual Studio for Mac IDE 內進行。Browse Unity projects and add folders, scripts, or shaders, all within the Visual Studio for Mac IDE.

使用熟悉的按鍵繫結關係Use familiar key bindings

使用您知道的按鍵繫結關係來提高生產力。Boost productivity by using the key bindings that you know. Visual Studio for Mac 提供許多熱門 IDE 的常見按鍵繫結,例如 Windows 上的 Visual Studio、ReSharper、Visual Studio Code 和 Xcode。Visual Studio for Mac provides familiar key bindings for many popular IDEs, such as Visual Studio on Windows, ReSharper, Visual Studio Code, and Xcode.

自訂視覺效果佈景主題Customize the Visual theme

請注意包含的暗色調佈景主題Give your eyes a rest with the included dark theme.

開始使用 Visual Studio for Mac 的 Unity 開發人員祕訣Tips for Unity developers getting started with Visual Studio for Mac

這些連結說明剛開始使用 Visual Studio for Mac 之 Unity 開發人員的實用功能:These links explain useful features for Unity developers just starting with Visual Studio for Mac: