集成开发环境 (IDE) 是一种计算机软件,提供工具和配套功能来方便开发其他软件。Unity 支持以下 IDE:
Visual Studio is installed by default when you install Unity on Windows and macOS. On Windows, you can choose to exclude it when you select which components to download and install. Visual Studio is set as the External Script Editor in Preferences (menu: Edit > Preferences > External Tools > External Script Editor). With this option enabled, Unity launches Visual Studio and uses it as the default editor for all script files.
在 macOS 上,Unity 使用 Visual Studio for Mac 作为 C# 集成开发环境。Visual Studio Tools for Unity (VSTU) 为 Visual Studio for Mac (VS4M) 提供 Unity 集成。有关设置和使用 Visual Studio for Mac 的信息,请参阅以下 Microsoft 文档页面:
在 Windows 上,Unity 还包括 Visual Studio 2017 Community。
Unity supports opening scripts in Visual Studio Code (VS Code). To open scripts in VS Code, select it as the External Script Editor in the Editor Preferences (menu: Edit > Preferences > External Tools > External Script Editor). For information on using VS Code with Unity, see Visual Studio’s documentation on Unity Development with VS Code.
为了使用 Visual Studio Code 进行 C# 代码编辑并获得 Unity C# 调试支持,需要安装:
Unity supports opening scripts in JetBrains Rider. To open scripts in Rider, select it as the External Script Editor in the Editor Preferences (menu: Edit > Preferences > External Tools > External Script Editor).
Rider 构建于 ReSharper 之上,并包含其大部分功能。此程序支持 C# 7.2 的所有功能以及 Unity 中的 .NET 4.6 脚本运行时上的 C# 调试。有关更多信息,请参阅有关 Rider for Unity 的 JetBrains 文档。