unity2021版的Editor Attaching在哪
时间: 2024-02-19 21:00:10 浏览: 33
在 Unity 2021 版本中,可以通过以下步骤来使用 Editor Attaching:
1. 打开 Unity 编辑器,并打开您的项目。
2. 点击菜单栏中的 "Edit",然后选择 "Project Settings"。
3. 在 "Project Settings" 窗口中,选择 "Editor" 部分。
4. 在 "Editor" 部分中,找到 "Editor Attaching" 选项。
5. 勾选 "Enable Editor Attaching" 选项即可启用 Editor Attaching 功能。
启用后,您可以在 Visual Studio 或其他代码编辑器中打开 Unity 应用程序的代码,并调试运行中的 Unity 应用程序。
相关问题
unity2021版Script Debugging在哪
在Unity 2021中,Script Debugging功能默认是启用的。如果你想要在Unity中调试脚本,可以按照以下步骤操作:
1. 打开Unity编辑器并启动你的项目。
2. 在菜单栏中选择“Edit” > “Preferences”。
3. 在“Preferences”对话框中选择“External Tools”选项卡。
4. 在该选项卡中,确保“Script Debugger”字段设置为“Visual Studio (Windows)”或“Visual Studio for Mac (macOS)”,这取决于你正在使用哪个操作系统和哪个版本的Visual Studio。
5. 确认设置后,打开脚本并在需要调试的行上设置断点。
6. 按下F5启动调试器,并在Visual Studio中调试你的代码。
请注意,为了能够正确地使用Script Debugging功能,你需要在Visual Studio中安装Unity调试工具包。该工具包可以在Visual Studio的安装程序中找到并安装。
unity中unityEditor在哪
UnityEditor是Unity的一个命名空间,在Unity中通常用于开发者自定义Editor工具和编辑器扩展。如果你是在Unity中开发自定义Editor工具或编辑器扩展,那么你需要在你的脚本中引入UnityEditor命名空间,例如:
```csharp
using UnityEditor;
```
如果你只是在Unity中开发普通的游戏逻辑脚本,那么你并不需要使用UnityEditor命名空间。