Version: 2018.2
使用 IL2CPP 进行托管字节码剥离
在 Unity 中调试 C# 代码

集成开发环境 (IDE) 支持

集成开发环境 (IDE) 是一种计算机软件,提供工具和配套功能来方便开发其他软件。Unity 支持以下 IDE:

Visual Studio(Windows 和 macOS 上的默认集成开发环境)

Unity installs Visual Studio 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 the Preferences (menu: Unity > 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

Visual Studio Code(Windows、macOS、Linux)

Unity 支持在 Visual Studio Code (VS Code) 中打开脚本。要在 VS Code 中打开脚本,请在 Editor Preferences 设置中将其选为 __External Script Editor__(菜单:__Unity > Preferences > External Tools > External Script Editor__)。有关将 VS Code 与 Unity 结合使用的信息,请参阅关于使用 VS Code 进行 Unity 开发 (Unity Development with VS Code) 的 Visual Studio 文档。

先决条件

为了使用 Visual Studio Code 进行 C# 代码编辑并获得 Unity C# 调试支持,需要安装:

JetBrains Rider(Windows、macOS、Linux)

Unity 支持在 JetBrains Rider 中打开脚本。要在 Rider 中打开脚本,请在 Editor Preferences 设置中将其选为 __External Script Editor__(菜单:__Unity > Preferences > External Tools > External Script Editor__)。

Rider is built on top of ReSharper and includes most of its features. It supports all of C# 6.0’s features as well as C# debugging on the .NET 4.6 scripting runtime in Unity. For more information, see JetBrains documentation on Rider for Unity.


使用 IL2CPP 进行托管字节码剥离
在 Unity 中调试 C# 代码
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961