使用 Unity Package Manager Diagnostics 工具可以诊断 Unity Package Manager 的常见网络相关问题。Diagnostics 工具运行 Unity 支持团队需要的一些基本网络测试,以诊断常见的网络问题。运行该工具后,您可以与 Unity 支持团队共享结果,因此 Unity 支持团队可以更好地指导您解决这些问题。
可以通过 Unity Package Manager Error 对话框或通过手动运行启动脚本来运行 Unity Package Manager Diagnostics。
Diagnostics 工具运行完成后,将在 shell 窗口中显示测试结果。还将写入一个日志文件和一个报告文件,您可以从 shell 窗口中打开这两个文件:
运行 Unity Package Manager Diagnostics 后,提交错误并包含报告。
当 Unity 尝试启动时,将在加载项目之前启动 Package Manager 进程。如果在 Package Manager 中遇到严重错误,Unity 将显示以下错误消息:
要运行 Diagnose 工具,请单击 Diagnose。Unity 将关闭并在新窗口中启动 Diagnostics 工具。
在 Unity 安装文件夹下的 Diagnostics 文件夹中找到脚本:
操作系统: | Diagnostics 命令行工具的路径: |
---|---|
Windows |
<path-to-unity-installation-folder> \Unity \Data \Resources \PackageManager \Diagnostics \RunUnityPackageManagerDiagnostics.bat
|
macOS Linux |
<path-to-unity-installation-folder> \Unity.app \Contents \Resources \PackageManager \Diagnostics \RunUnityPackageManagerDiagnostics
|
要启动该工具,请在文件浏览器中双击脚本文件,或从命令行运行脚本文件。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.