Unity 手册提供了特定 Unity 版本的文档。每个包都有自己的版本,因此每个包都提供该包特定版本的文档。因此,主要 Unity 手册文档中不包含包文档;相反,每个包的文档都位于 Unity 文档服务器上自己的微型网站中。
要访问特定包的文档,您有两个选择:
包页面打开后,页面的顶部会出现四个链接 (A),以及一个下拉菜单 (B),在这里可以选择不同的版本:
要在此包的手册 (Manual) 文档、脚本 API (Scripting API) 文档、变更日志 (Changelog) 和许可证 (License) 信息之间来回切换,请单击页面顶部的对应链接。
每个版本的 Unity 手册文档都提供已验证和预览包的列表、内置包的列表以及关键字的列表,而且其中包含链接,指向了您可以用于该 Unity 版本的相应包文档:
注意:这些列表中仅显示兼容与文档匹配的 Unity 版本的包。
您可以展开导航边栏中的条目 (A),从而访问有关每个包的特定信息,包括兼容版本的列表、包的简要说明以及任何关联的关键字。也可以单击列表页面上的链接 (B) 以直接打开与该文档版本匹配的包文档的最兼容版本。
如果在此列表中找不到所需的包,可能有以下几种原因:
对于在另一个 Unity 版本中发布的包,您可以通过 Package Manager 窗口访问文档。如果是私有包,请尝试直接与开发者联系以请求访问权限。
您可以通过查看包的文档、变更日志或许可证信息来找到有关包的更多信息。
要访问其中任何一个页面,可从 Package Manager 窗口中单击 View documentation、View changelog 或 View licenses 链接。
要访问特定包版本的文档,请执行以下操作:
在 Unity 中打开 Package Manager 窗口。
遵循查找包中的准则找到您想要的特定包和版本号。
单击 View documentation 链接以打开所选包版本的文档。
Note: If you are offline when you click the View documentation link and the package is already installed, the Package Manager opens the <package-root-folder>/Documentation~
folder in your file browser. If the Package Manager is not installed, a message appears to let you know that the package is not available offline.
可以对任何包的任何版本执行此过程。请注意,每个包版本的文档不一定相同,因为某些版本更新(补丁)仅涉及错误修复或不重要的更改。
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.